diff options
| author | 2025-05-21 17:56:25 +0100 | |
|---|---|---|
| committer | 2025-07-21 23:50:34 +0200 | |
| commit | 6466084df6b083b6f0778aa9adcb83cb8880597e (patch) | |
| tree | d0b891eae3ed586d5e13765374788911d9855384 /fs/btrfs/tree-log.c | |
| parent | btrfs: abort transaction during log replay if walk_log_tree() failed (diff) | |
| download | linux-rng-6466084df6b083b6f0778aa9adcb83cb8880597e.tar.xz linux-rng-6466084df6b083b6f0778aa9adcb83cb8880597e.zip | |
btrfs: remove redundant path release when replaying a log tree
There's no need to call btrfs_release_path() before calling
btrfs_init_root_free_objectid() as we have released the path already at
the top of the loop and the previous call to fixup_inode_link_counts()
also releases the path. So remove it to simplify the code.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
| -rw-r--r-- | fs/btrfs/tree-log.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 6a60f072c365..e52e15d46114 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -7302,8 +7302,6 @@ again: if (!ret && wc.stage == LOG_WALK_REPLAY_ALL) { struct btrfs_root *root = wc.replay_dest; - btrfs_release_path(path); - /* * We have just replayed everything, and the highest * objectid of fs roots probably has changed in case |
