]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't load the block bitmap for block groups which have no space
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Aug 2012 13:46:17 +0000 (09:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Aug 2012 13:46:17 +0000 (09:46 -0400)
commit938291f6f54f7a2bbfe57f6bd3c84e620915226f
treee1a4bfe958e9bb0dc2064c45fa2a0db498236a08
parent4496868e9b9613a6993e3b317b9f69cbda7cdb7f
ext4: don't load the block bitmap for block groups which have no space

Add a short circuit check to ext4_mb_group_group() so that we don't
bother to load the block bitmap for a block group which does not have
any space available.  (Or which does not have enough space until we
are in desperation mode, i.e., when cr == 3.)

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=45741
Reported-by: mirek@me.com
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c