summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.de>2015-07-01 00:42:06 +0300
committerChris Mason <clm@fb.com>2015-08-09 17:34:25 +0300
commit293a8489f300536dc6d996c35a6ebb89aa03bab2 (patch)
treec428134cc3f86ec4e3dd48c413eee15995d5bfc0 /tools/perf
parent4a3560c4f3f0f92d3b673944753e3e947e030bc4 (diff)
downloadlinux-293a8489f300536dc6d996c35a6ebb89aa03bab2.tar.xz
btrfs: fix clone / extent-same deadlocks
Clone and extent same lock their source and target inodes in opposite order. In addition to this, the range locking in clone doesn't take ordering into account. Fix this by having clone use the same locking helpers as btrfs-extent-same. In addition, I do a small cleanup of the locking helpers, removing a case (both inodes being the same) which was poorly accounted for and never actually used by the callers. Signed-off-by: Mark Fasheh <mfasheh@suse.de> Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions