Btrfs: make sure the delalloc workers actually flush compressed writes
authorJosef Bacik <jbacik@fusionio.com>
Mon, 28 Oct 2013 19:03:41 +0000 (15:03 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:08:22 +0000 (22:08 -0500)
commit9f23e289edaf1e99f60de3978c50a1c7424f3e92
tree4adebd01673babcff82aa9c99ced49d9b0a709ca
parent93858769172c4e3678917810e9d5de360eb991cc
Btrfs: make sure the delalloc workers actually flush compressed writes

When using delalloc workers in a non-waiting way (like for enospc handling) we
can end up not actually waiting for the dirty pages to be started if we have
compression.  We need to add an extra filemap flush to make sure any async
extents that have started are actually moved along before returning.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c