From 32bf31b3eec8a0b42a260bbce4c6f263aab682c0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 19 Sep 2007 20:14:50 +0000 Subject: [PATCH] Stricter limit for the number of unused vnodes. The fs_shell doesn't really manage memory, so one could easily run out of memory when copying large files. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22256 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/fs_shell/vfs.cpp b/src/tools/fs_shell/vfs.cpp index 2e3d7c4b15..cbe557e0e0 100644 --- a/src/tools/fs_shell/vfs.cpp +++ b/src/tools/fs_shell/vfs.cpp @@ -49,7 +49,7 @@ namespace FSShell { -const static uint32_t kMaxUnusedVnodes = 1024; +const static uint32_t kMaxUnusedVnodes = 16; // This is the maximum number of unused vnodes that the system // will keep around (weak limit, if there is enough memory left, // they won't get flushed even when hitting that limit).