]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make sure NODATACOW also gets NODATASUM set
authorJosef Bacik <jbacik@fusionio.com>
Thu, 21 Feb 2013 20:28:28 +0000 (15:28 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 26 Feb 2013 15:57:48 +0000 (10:57 -0500)
commit263d454d3817be18923390a9d576051209a87098
treeba7840304d4859579ddddd36e66f9e6bfe3bbfb8
parent309f6e7adbd7108d5b86f72ffaa348ae6d9297a3
Btrfs: make sure NODATACOW also gets NODATASUM set

A user reported hitting the BUG_ON() in btrfs_finished_ordered_io() where we had
csums on a NOCOW extent.  This can happen if we have NODATACOW set but not
NODATASUM set, which can happen in two cases, either we mount with -o nodatacow
and then write into preallocated space, or chattr +C a directory and move a file
into that directory.  Liu has fixed the move case in a different place, but this
fixes the mount -o nodatacow case.  Thanks,

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