diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-05-07 14:12:04 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:24 +0200 |
commit | 3fdf5798fa379c36d068090d026d18dd6dfc5b6c (patch) | |
tree | 001b38e4ea1803a1ce594c5d6eba53b43eb269c0 /fs/udf/udfdecl.h | |
parent | 133b3da83539bd04e97e24cbc8693a1cdca4b5ec (diff) | |
download | linux-3fdf5798fa379c36d068090d026d18dd6dfc5b6c.tar.gz linux-3fdf5798fa379c36d068090d026d18dd6dfc5b6c.tar.bz2 linux-3fdf5798fa379c36d068090d026d18dd6dfc5b6c.zip |
btrfs: use btrfs_read_extent_buffer() in do_walk_down()
Currently if our extent buffer isn't uptodate we will drop the lock,
free it, and then call read_tree_block() for the bytenr. This is
inefficient, we already have the extent buffer, we can simply call
btrfs_read_extent_buffer().
Merge these two cases down into one if statement, if we are not uptodate
we can drop the lock, trigger readahead, and do the read using
btrfs_read_extent_buffer(), and carry on.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/udf/udfdecl.h')
0 files changed, 0 insertions, 0 deletions