* Allow more waste on index directories.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31254 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-06-26 14:54:54 +00:00
parent c1b4d0ecc5
commit 5e08815985
@@ -1651,6 +1651,9 @@ Inode::_GrowStream(Transaction& transaction, off_t size)
// 64 MB for 1 GB)
roundTo = size >> (fVolume->BlockShift() + 4);
}
} else if (IsIndex()) {
// Always preallocate 64 KB for index directories
roundTo = 65536 >> fVolume->BlockShift();
} else {
// Preallocate only 4 KB - directories only get trimmed when their
// vnode is flushed, which might not happen very often.