]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
btrfs: allow dedupe of same inode
authorMark Fasheh <mfasheh@suse.de>
Tue, 30 Jun 2015 21:42:07 +0000 (14:42 -0700)
committerChris Mason <clm@fb.com>
Thu, 2 Jul 2015 00:17:15 +0000 (17:17 -0700)
commit0efa9f48c7e6c15e75946dd2b1c82d3d19e13545
treeec4ec4971f64f90c382f7d20d7de45e865870c3e
parentf441460202cb787c49963bcc1f54cb48c52f7512
btrfs: allow dedupe of same inode

clone() supports cloning within an inode so extent-same can do
the same now. This patch fixes up the locking in extent-same to
know about the single-inode case. In addition to that, we add a
check for overlapping ranges, which clone does not allow.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c