* 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user