]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: allow dedupe of same inode
authorMark Fasheh <mfasheh@suse.de>
Tue, 30 Jun 2015 21:42:07 +0000 (14:42 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 22 Aug 2017 15:42:59 +0000 (08:42 -0700)
commit60fc3f2f2bd88a2e0b9565b3066084bf38e9a37c
treed77f27abc3a44090fdcbe14a3a6f2da89c86418f
parentc703bf59889319e16c47c06c59464b80ff76cfa3
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>
(Cherry picked from commit 0efa9f48c7e6c15e75946dd2b1c82d3d19e13545)

Orabug: 26251039

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Acked-by: Shannon Nelson <shannon.nelson@oracle.com>
Acked-by: John Haxby <john.haxby@oracle.com>
fs/btrfs/ioctl.c