diff options
| author | Kemeng Shi <[email protected]> | 2023-03-04 01:21:04 +0800 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-04-06 01:13:11 -0400 |
| commit | abc075d4a5dc48b68bd44b5ecb4e44e936d01195 (patch) | |
| tree | ac829a8627fabeec3b209b2178a2169bdac45526 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 22fab984025313198559278814147c57901106f6 (diff) | |
ext4: correct calculation of s_mb_preallocated
We will add pa_free to s_mb_preallocated when new ext4_prealloc_space is
created. In ext4_mb_new_inode_pa, we will call ext4_mb_use_inode_pa
before adding pa_free to s_mb_preallocated. However, ext4_mb_use_inode_pa
will consume pa_free for block allocation which triggerred the creation
of ext4_prealloc_space. Add pa_free to s_mb_preallocated before
ext4_mb_use_inode_pa to correct calculation of s_mb_preallocated.
There is no such problem in ext4_mb_new_group_pa as pa_free of group pa
is consumed in ext4_mb_release_context instead of ext4_mb_use_group_pa.
Signed-off-by: Kemeng Shi <[email protected]>
Reviewed-by: Ojaswin Mujoo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions