diff mbox series

[7/7] btrfs: Remove redundant btrfs_release_path from btrfs_unlink_subvol

Message ID 20180801033231.23166-8-lufq.fnst@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show
Series Some unused parameter cleanup | expand

Commit Message

Lu Fengqi Aug. 1, 2018, 3:32 a.m. UTC
Although it is safe to call this on paths that no locks or extent buffers
held, removing the redundant btrfs_release_path is reasonable.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
 fs/btrfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


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;