diff options
author | Chao Yu <chao@kernel.org> | 2024-02-20 11:15:15 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-02-27 09:41:16 -0800 |
commit | 0f1c6ede6da9f7c5dd7380b74a64850298279168 (patch) | |
tree | f37176e28c1eab4aaea9181d4321e502976fc649 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9703d69d9d153bb230711d0d577454552aeb13d4 (diff) |
f2fs: introduce get_available_block_count() for cleanup
There are very similar codes in inc_valid_block_count() and
inc_valid_node_count() which is used for available user block
count calculation.
This patch introduces a new helper get_available_block_count()
to include those common codes, and used it to clean up codes.
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions