]> git.baikalelectronics.ru Git - kernel.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)
commit17ac6b86bc092211016bd5c9970d2e597dff27cc
tree93e64ecb2d2bbc58da63c859bd736ccc83fdbbd3
parent1d54c8c384c8f42cf34d7cd907ee056706a1cdbe
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