From: Mark Fasheh Date: Tue, 30 Jun 2015 21:42:07 +0000 (-0700) Subject: btrfs: allow dedupe of same inode X-Git-Tag: omap-for-v4.2/fixes-rc2-v2~20^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0efa9f48c7e6c15e75946dd2b1c82d3d19e13545;p=pandora-kernel.git 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 Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed