aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-checker.c
diff options
context:
space:
mode:
authorGravatar Josef Bacik <josef@toxicpanda.com> 2019-11-19 13:59:20 -0500
committerGravatar David Sterba <dsterba@suse.com> 2019-12-13 14:09:23 +0100
commit943eb3bf25f4a7b745dd799e031be276aa104d82 (patch)
treea649d2de74efae956436897461ba66cbf0ed3557 /fs/btrfs/tree-checker.c
parentbtrfs: handle error in btrfs_cache_block_group (diff)
downloadlinux-943eb3bf25f4a7b745dd799e031be276aa104d82.tar.gz
linux-943eb3bf25f4a7b745dd799e031be276aa104d82.tar.bz2
linux-943eb3bf25f4a7b745dd799e031be276aa104d82.zip
btrfs: don't double lock the subvol_sem for rename exchange
If we're rename exchanging two subvols we'll try to lock this lock twice, which is bad. Just lock once if either of the ino's are subvols. Fixes: cdd1fedf8261 ("btrfs: add support for RENAME_EXCHANGE and RENAME_WHITEOUT") CC: stable@vger.kernel.org # 4.4+ Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-checker.c')
0 files changed, 0 insertions, 0 deletions