Skip to content

Commit a10c407

Browse files
fdmananamasoncl
authored andcommitted
Btrfs: send, remove dead code from __get_cur_name_and_parent
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Signed-off-by: Chris Mason <clm@fb.com>
1 parent c992ec9 commit a10c407

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/btrfs/send.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,6 @@ static int __get_cur_name_and_parent(struct send_ctx *sctx,
20302030
{
20312031
int ret;
20322032
int nce_ret;
2033-
struct btrfs_path *path = NULL;
20342033
struct name_cache_entry *nce = NULL;
20352034

20362035
/*
@@ -2056,10 +2055,6 @@ static int __get_cur_name_and_parent(struct send_ctx *sctx,
20562055
}
20572056
}
20582057

2059-
path = alloc_path_for_send();
2060-
if (!path)
2061-
return -ENOMEM;
2062-
20632058
/*
20642059
* If the inode is not existent yet, add the orphan name and return 1.
20652060
* This should only happen for the parent dir that we determine in
@@ -2135,7 +2130,6 @@ static int __get_cur_name_and_parent(struct send_ctx *sctx,
21352130
name_cache_clean_unused(sctx);
21362131

21372132
out:
2138-
btrfs_free_path(path);
21392133
return ret;
21402134
}
21412135

0 commit comments

Comments
 (0)