linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Btrfs: remove duplicated btrfs_release_path in btrfs_unlink_subvol
@ 2018-08-14  2:47 Liu Bo
  2018-08-14 10:46 ` David Sterba
  0 siblings, 1 reply; 5+ messages in thread
From: Liu Bo @ 2018-08-14  2:47 UTC (permalink / raw)
  To: linux-btrfs

The btrfs_release_path() is just useless as path is only used in error handling.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
---
 fs/btrfs/inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index eba61bcb9bb3..5680e9c462a3 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4148,7 +4148,6 @@ static int btrfs_unlink_subvol(struct btrfs_trans_handle *trans,
 		btrfs_release_path(path);
 		index = key.offset;
 	}
-	btrfs_release_path(path);
 
 	ret = btrfs_delete_delayed_dir_index(trans, fs_info, BTRFS_I(dir), index);
 	if (ret) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-15 21:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-14  2:47 [PATCH] Btrfs: remove duplicated btrfs_release_path in btrfs_unlink_subvol Liu Bo
2018-08-14 10:46 ` David Sterba
2018-08-15  2:52   ` Liu Bo
2018-08-15 11:48     ` David Sterba
2018-08-15 18:40       ` Liu Bo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).