diff options
author | 2017-12-11 12:49:55 +0100 | |
---|---|---|
committer | 2018-01-18 21:15:37 +0100 | |
commit | 5cf26b1e88c9eef76a1e8bdedbad48db925bbdd5 (patch) | |
tree | 29e9d9ba8e64035cdfa04b4c6ceaa7e957a51ec5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Turn gfs2_block_truncate_page into gfs2_block_zero_range (diff) | |
download | wireguard-linux-5cf26b1e88c9eef76a1e8bdedbad48db925bbdd5.tar.xz wireguard-linux-5cf26b1e88c9eef76a1e8bdedbad48db925bbdd5.zip |
gfs2: Generalize truncate code
Pull the code for computing the range of metapointers to iterate out of
gfs2_metapath_ra (for readahead), sweep_bh_for_rgrps (for deallocating
metapointers within a block), and trunc_dealloc (for walking the
metadata tree).
In sweep_bh_for_rgrps, move the code for looking up the resource group
descriptor of the current resource group out of the inner loop. The
metatype check moves to trunc_dealloc.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions