diff options
| author | Zhang Yi <yi.zhang@huawei.com> | 2026-07-29 16:59:17 +0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-07-30 10:57:13 -0400 |
| commit | 5b3dcb924a38ecd2c0d828ff30c357357eda1da8 (patch) | |
| tree | 4f25f4f6c953f3ca2c61ed6dfa7280ac17d0cd8f /tools/perf/scripts/python/bin | |
| parent | c87abbab6147dcc5aa1fd8f2a61734d58d8b99ec (diff) | |
ext4: export converted block count from ext4_convert_unwritten_extents()
ext4_convert_unwritten_extents() currently returns only a success or a
failure indication. A zero return means all requested blocks were
converted, and a negative value means the conversion failed. However,
some blocks may have already been converted when the function fails
partway through, and callers have no way to learn how many were done.
The WRITE_ZEROES caller in ext4_alloc_file_blocks() needs this
information to decide whether to add the inode to the orphan list before
updating i_disksize to cover the already-converted written extents, so
that a crash before i_disksize catches up can be recovered via orphan
truncation.
Switch the function to pass out the number of converted blocks through
the new output parameter @converted, which will be used by later
patches.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260729085918.3336221-2-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
