btrfsck: make sure to dirty all block groups as we fix accounting
authorChris Mason <chris.mason@oracle.com>
Thu, 9 Feb 2012 14:29:19 +0000 (09:29 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 9 Feb 2012 14:29:19 +0000 (09:29 -0500)
commit0bc5e18aace8d2535adc57cfa95c2481e94d60f7
tree60eadd708202429de536f986c3b0fb8190a9f305
parentd01fcebeb5187569d2ac29ba8aa2518f76e4f2b0
btrfsck: make sure to dirty all block groups as we fix accounting

The code that corrects the count of bytes used in each block group
was only marking block groups dirty when they contained extents.  This
fixes things to dirty all the block groups, so any empty block groups
are written with their correct (zero) count.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
extent-tree.c