[Haiku-commits] r31254 - haiku/trunk/src/add-ons/kernel/file_systems/bfs

axeld at BerliOS axeld at mail.berlios.de
Fri Jun 26 16:54:54 CEST 2009


Author: axeld
Date: 2009-06-26 16:54:54 +0200 (Fri, 26 Jun 2009)
New Revision: 31254
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31254&view=rev

Modified:
   haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp
Log:
* Allow more waste on index directories.


Modified: haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp	2009-06-26 14:49:48 UTC (rev 31253)
+++ haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp	2009-06-26 14:54:54 UTC (rev 31254)
@@ -1651,6 +1651,9 @@
 				// 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.




More information about the Haiku-commits mailing list