]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't change inode flag of the dest clone file
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 18 Sep 2011 14:20:46 +0000 (10:20 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 18 Sep 2011 14:20:46 +0000 (10:20 -0400)
commit9daea56c1aca43e0577abc04f3fe83d9833a5ca3
tree4a991cc02d9903dd2c4d017686bf4a549478e327
parent82618bc994951890bafea8d2f28c4d0cc33fe86a
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