]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Btrfs: reset force_compress on btrfs_file_defrag failure
authorFilipe David Borba Manana <fdmanana@gmail.com>
Fri, 16 Aug 2013 14:23:33 +0000 (15:23 +0100)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:00 +0000 (08:16 -0400)
commit633085c79c84c391732caa40f5b3a3d2b299f7be
tree93e64ecb2d2bbc58da63c859bd736ccc83fdbbd3
parentf420ee1e923b931eeef5e2928791e84b1197cab3
Btrfs: reset force_compress on btrfs_file_defrag failure

After we set force_compress with a new value (which was not being done
while holding the inode mutex), if an error happens and we jump to
the label out_ra, the force_compress property of the inode is not set
to BTRFS_COMPRESS_NONE (unlike in the case where no errors happen).

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