]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: correctly flush data on defrag when compression is enabled
authorFilipe Manana <fdmanana@gmail.com>
Sat, 1 Mar 2014 10:55:54 +0000 (10:55 +0000)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:17:16 +0000 (15:17 -0400)
commitd107e502ecab3058e02d569011e9f240a67c94cd
tree6369b052c7bce2c06ce2ec00142437ae02cd1f92
parentd65cd6008ebd4f269a66d5a401984c13ff0d371e
Btrfs: correctly flush data on defrag when compression is enabled

When the defrag flag BTRFS_DEFRAG_RANGE_START_IO is set and compression
enabled, we weren't flushing completely, as writing compressed extents
is a 2 steps process, one to compress the data and another one to write
the compressed data to disk.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/ioctl.c