Btrfs: don't change inode flag of the dest clone file
commitdde820fbf7176b64daddc1856597d9c61dac19e2
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 18 Sep 2011 14:20:46 +0000 (18 10:20 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 18 Sep 2011 14:20:46 +0000 (18 10:20 -0400)
tree4a991cc02d9903dd2c4d017686bf4a549478e327
parent0e7b824c4ef9f5bcf5e48cdce164a7b349dde969
Btrfs: don't change inode flag of the dest clone file

The dst file will have the same inode flags with dst file after
file clone, and I think it's unexpected.

For example, the dst file will suddenly become immutable after
getting some share of data with src file, if the src is immutable.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c