]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: Remove redundant btrfs_release_path from btrfs_unlink_subvol
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Wed, 1 Aug 2018 03:32:31 +0000 (11:32 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:03:01 +0000 (19:03 +0100)
commitce79733c2614cea213be581d1dda8485eccc8acf
tree2f2ac126067c2114c7d43729ecf38c99229c8933
parent62bcfd5e5316f81e6c3f273443df4d89ee6d3e78
btrfs: Remove redundant btrfs_release_path from btrfs_unlink_subvol

commit 5b7d687ad5913a56b6a8788435d7a53990b4176d upstream.

Although it is safe to call this on already released paths with no locks
held or extent buffers, removing the redundant btrfs_release_path is
reasonable.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
[bwh: Backported to 3.16 as dependency of commit d49d3287e74f
 "btrfs: fix invalid removal of root ref"]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/btrfs/inode.c