commit | 0efa9f48c7e6c15e75946dd2b1c82d3d19e13545 | [log] [tgz] |
---|---|---|
author | Mark Fasheh <mfasheh@suse.de> | Tue Jun 30 14:42:07 2015 -0700 |
committer | Chris Mason <clm@fb.com> | Wed Jul 01 17:17:15 2015 -0700 |
tree | ec4ec4971f64f90c382f7d20d7de45e865870c3e | |
parent | f441460202cb787c49963bcc1f54cb48c52f7512 [diff] |
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>