summaryrefslogtreecommitdiffstats
path: root/scripts/mkcompile_h
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.de>2015-06-30 23:42:06 +0200
committerChris Mason <clm@fb.com>2015-08-09 16:34:25 +0200
commit293a8489f300536dc6d996c35a6ebb89aa03bab2 (patch)
treec428134cc3f86ec4e3dd48c413eee15995d5bfc0 /scripts/mkcompile_h
parentBtrfs: fix defrag to merge tail file extent (diff)
downloadlinux-293a8489f300536dc6d996c35a6ebb89aa03bab2.tar.xz
linux-293a8489f300536dc6d996c35a6ebb89aa03bab2.zip
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 'scripts/mkcompile_h')
0 files changed, 0 insertions, 0 deletions