diff options
| author | Kemeng Shi <[email protected]> | 2023-02-21 19:59:19 +0800 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-03-23 23:00:08 -0400 |
| commit | 68e294dcccf965c93d65c4660547794728a4cff0 (patch) | |
| tree | 90cf8f8edf8da4ab8a034f41acff93c35e7626a0 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | cefa74d004fa48bc073ad66b7a7ad00dc8d7bfa6 (diff) | |
ext4: improve inode table blocks counting in ext4_num_overhead_clusters
As inode table blocks are contiguous, inode table blocks inside the
block_group can be represented as range [itbl_cluster_start,
itbl_cluster_last]. Then we can simply account inode table cluters and
check cluster overlap with [itbl_cluster_start, itbl_cluster_last]
instead of traverse each block of inode table.
By the way, this patch fixes code style problem of comment for
ext4_num_overhead_clusters.
[ Merged fix-up patch which fixed potentially access to an
uninitialzied stack variable. --TYT ]
Signed-off-by: Kemeng Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]/
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions