From: Josef Bacik Date: Fri, 11 Sep 2009 20:11:20 +0000 (-0400) Subject: Btrfs: fix bitmap size tracking X-Git-Tag: v2.6.32-rc1~57^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f019f4264ae8c0169332592bcee419ee90e7c827;p=pandora-kernel.git Btrfs: fix bitmap size tracking When we first go to add free space, we allocate a new info and set the offset and bytes to the space we are adding. This is fine, except we actually set the size of a bitmap as we set the bits in it, so if we add space to a bitmap, we'd end up counting the same space twice. This isn't a huge deal, it just makes the allocator behave weirdly since it will think that a bitmap entry has more space than it ends up actually having. I used a BUG_ON() to catch when this problem happened, and with this patch I no longer get the BUG_ON(). Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed