]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: allow file data clone within a file
authorLiu Bo <bo.li.liu@oracle.com>
Sun, 26 May 2013 13:50:31 +0000 (13:50 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:30:03 +0000 (11:30 -0400)
commitb8625c0d8821a9a7b878d294f603f14cff6fea1d
tree3a2d3e01260fe038f0b8bc0a114e4dcb4ad816d0
parent359f8e9c06f31f101e0268bf8144ace62ea0b780
Btrfs: allow file data clone within a file

We did not allow file data clone within the same file because of
deadlock issues.

However, we now use nested lock to avoid deadlock between the
parent directory and the child file.

So it's safe to do file clone within the same file when the two
ranges are not overlapped.

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c