diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-01 11:32:31 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:13:01 +0200 |
commit | 5b7d687ad5913a56b6a8788435d7a53990b4176d (patch) | |
tree | 15f98791854b5fc6bdda1ef5b980734083f008a5 /fs/btrfs/inode.c | |
parent | 401b3b19d592391b718b7a17295ae34eace973dd (diff) | |
download | linux-stable-5b7d687ad5913a56b6a8788435d7a53990b4176d.tar.gz linux-stable-5b7d687ad5913a56b6a8788435d7a53990b4176d.tar.bz2 linux-stable-5b7d687ad5913a56b6a8788435d7a53990b4176d.zip |
btrfs: Remove redundant btrfs_release_path from btrfs_unlink_subvol
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index b8c131b82978..7e56a203c109 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4137,7 +4137,6 @@ static int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, leaf = path->nodes[0]; btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); - btrfs_release_path(path); index = key.offset; } btrfs_release_path(path); |