diff options
author | 2018-05-18 11:00:19 +0800 | |
---|---|---|
committer | 2018-05-30 16:46:44 +0200 | |
commit | ca19b4a69962fa850d5a22aa7a335106fcba0473 (patch) | |
tree | 496ae6ca6bb880e10b2743443636e0e6c5d45421 /tools/perf/scripts/python/syscall-counts.py | |
parent | btrfs: drop unused space_info parameter from create_space_info (diff) | |
download | linux-dev-ca19b4a69962fa850d5a22aa7a335106fcba0473.tar.xz linux-dev-ca19b4a69962fa850d5a22aa7a335106fcba0473.zip |
Btrfs: remove superfluous free_extent_buffer in read_block_for_search
read_block_for_search() can be simplified as:
tmp = find_extent_buffer();
if (tmp)
return;
...
free_extent_buffer();
read_tree_block();
Apparently, @tmp must be NULL at this point, free_extent_buffer() is not
needed.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions