From: Josef Bacik Date: Thu, 26 Jan 2012 20:01:11 +0000 (-0500) Subject: Btrfs: make sure a bitmap has enough bytes X-Git-Tag: v3.3-rc2~16^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357b9784b79924a31ccded5d9a0c688f48cc28f2;p=pandora-kernel.git Btrfs: make sure a bitmap has enough bytes We have only been checking for min_bytes available in bitmap entries, but we won't successfully setup a bitmap cluster unless it has at least bytes in the bitmap, so in the common case min_bytes is 4k and we want something like 2MB, so if there are a bunch of bitmap entries with less than 2mb's in them, we'll search all them anyway, which is suboptimal. Fix this check. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed