]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix orlov allocator boundary case
authorAndrew Morton <akpm@digeo.com>
Thu, 17 Apr 2003 05:52:11 +0000 (22:52 -0700)
committerBen Collins <bcollins@debian.org>
Thu, 17 Apr 2003 05:52:11 +0000 (22:52 -0700)
commit48b2bd92f675700268be42da6c3c47aa6a0c9b21
tree177a8f192efb16242b1ab127c941c6498322af73
parent98d51dce2ff859fec9330c7a9f2949747a25bf5c
[PATCH] Fix orlov allocator boundary case

In the interests of SMP scalability the ext2 free blocks and free inodes
counters are "approximate".  But there is a piece of code in the Orlov
allocator which fails due to boundary conditions on really small
filesystems.

Fix that up via a final allocation pass which simply uses first-fit for
allocation of a directory inode.
fs/ext2/ialloc.c