]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make sure to update total_bitmaps when freeing cache V3
authorJosef Bacik <josef@redhat.com>
Fri, 24 Jun 2011 16:02:51 +0000 (16:02 +0000)
committerChris Mason <chris.mason@oracle.com>
Sat, 25 Jun 2011 13:31:06 +0000 (09:31 -0400)
commitcc61d3f134ca32fb83563b452d01c54206af9d7a
treed149650ba8e15a1ec22b3832482e9b24ea420fa3
parent155a0d9cb10e407a0c19c1e5ba33f60f7ef209aa
Btrfs: make sure to update total_bitmaps when freeing cache V3

A user reported this bug again where we have more bitmaps than we are supposed
to.  This is because we failed to load the free space cache, but don't update
the ctl->total_bitmaps counter when we remove entries from the tree.  This patch
fixes this problem and we should be good to go again.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/free-space-cache.c