Commit 90542dc
btrfs: use level argument in log tree walk callback replay_one_buffer()
[ Upstream commit 6cb7f0b ]
We already have the extent buffer's level in an argument, there's no need
to first ensure the extent buffer's data is loaded (by calling
btrfs_read_extent_buffer()) and then call btrfs_header_level() to check
the level. So use the level argument and do the check before calling
btrfs_read_extent_buffer().
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 403eb8a commit 90542dc
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2443 | 2443 | | |
2444 | 2444 | | |
2445 | 2445 | | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
2446 | 2449 | | |
2447 | 2450 | | |
2448 | 2451 | | |
2449 | 2452 | | |
2450 | | - | |
2451 | | - | |
2452 | | - | |
2453 | | - | |
2454 | | - | |
2455 | 2453 | | |
2456 | 2454 | | |
2457 | 2455 | | |
| |||
0 commit comments