]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: add pinned extents to on-disk free space cache correctly
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 10 Jan 2012 08:41:01 +0000 (16:41 +0800)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Fri, 27 Jan 2012 01:20:34 +0000 (17:20 -0800)
commit16cca65bd111572f29583598e603dfd6fcc7224c
treed8e52a2822b22817c4c36f082202bc88ddae708f
parent102fc1fb2f0f2bc82c88dd1b963847c96bb8c530
Btrfs: add pinned extents to on-disk free space cache correctly

I got this while running xfstests:

[24256.836098] block group 317849600 has an wrong amount of free space
[24256.836100] btrfs: failed to load free space cache for block group 317849600

We should clamp the extent returned by find_first_extent_bit(),
so the start of the extent won't smaller than the start of the
block group.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
(cherry picked from commit db804f23a72bada58f083dfad6a65d019ddb3bd4)
fs/btrfs/free-space-cache.c