]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Add fallback for find_group_flex
authorTheodore Ts'o <tytso@mit.edu>
Sat, 21 Feb 2009 17:13:24 +0000 (12:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 21 Feb 2009 17:13:24 +0000 (12:13 -0500)
commitc6d000679487d4a69fc4a1549eea1cf928dd73d0
tree36dba549ded1f7c7b37bd854fb20d55bff89787d
parenta593fb205b3558d33218f92192aa6b58b020c7b3
ext4: Add fallback for find_group_flex

This is a workaround for find_group_flex() which badly needs to be
replaced.  One of its problems (besides ignoring the Orlov algorithm)
is that it is a bit hyperactive about returning failure under
suspicious circumstances.  This can lead to spurious ENOSPC failures
even when there are inodes still available.

Work around this for now by retrying the search using
find_group_other() if find_group_flex() returns -1.  If
find_group_other() succeeds when find_group_flex() has failed, log a
warning message.

A better block/inode allocator that will fix this problem for real has
been queued up for the next merge window.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ialloc.c