aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2015-03-13 20:40:45 +0000
committerChris Mason <[email protected]>2015-03-13 20:47:04 +0000
commitea526d18990018f224e5734748975bea1824545f (patch)
tree810176d97b84699b286b8c05d0fae200dd7322b1 /lib/mpi/mpi-bit.c
parentBtrfs: account for the correct number of extents for delalloc reservations (diff)
downloadkernel-ea526d18990018f224e5734748975bea1824545f.tar.gz
kernel-ea526d18990018f224e5734748975bea1824545f.zip
Btrfs: fix ASSERT(list_empty(&cur_trans->dirty_bgs_list)
Dave could hit this assert consistently running btrfs/078. This is because when we update the block groups we could truncate the free space, which would try to delete the csums for that range and dirty the csum root. For this to happen we have to have already written out the csum root so it's kind of hard to hit this case. This patch fixes this by changing the logic to only write the dirty block groups if the dirty_cowonly_roots list is empty. This will get us the same effect as before since we add the extent root last, and will cover the case that we dirty some other root again but not the extent root. Thanks, Reported-by: David Sterba <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions