Skip to content

Commit 9bdfa3e

Browse files
fdmananakdave
authored andcommitted
btrfs: remove redundant path release when processing dentry during log replay
At replay_one_one() we have a redundant btrfs_release_path() just before calling insert_one_name(), as some lines above we have already released the path with another btrfs_release_path() call. So remove it. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent f366722 commit 9bdfa3e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/btrfs/tree-log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,6 @@ static noinline int replay_one_name(struct walk_control *wc,
20792079
update_size = false;
20802080
goto out;
20812081
}
2082-
btrfs_release_path(path);
20832082
ret = insert_one_name(trans, root, wc->log_key.objectid, wc->log_key.offset,
20842083
&name, &log_key);
20852084
if (ret && ret != -ENOENT && ret != -EEXIST) {

0 commit comments

Comments
 (0)