diff options
| author | Zhang Yi <yi.zhang@huawei.com> | 2026-07-14 16:00:40 +0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-07-22 12:57:16 -0400 |
| commit | 012e6a2c9ff4d28abd4f32e4d68decff47297d06 (patch) | |
| tree | bc488b7e1c2384198878daf155f288dee549328c /tools/perf/scripts/python/bin | |
| parent | b16e9d27a643a3cf8907c994d25ed52717f36418 (diff) | |
ext4: clarify return semantics of ext4_load_tail_bh()
ext4_load_tail_bh() returns NULL for both holes and clean unwritten
buffers, but the conditions that lead to this are not obvious from the
code alone. Document this behavior to clarify the return value, so that
readers do not mistakenly assume that only holes result in a NULL
return.
Also update the inline comment following the ext4_get_block() call to
reflect this, and note that a lookup-only get_block (without
EXT4_GET_BLOCKS_CREATE) never sets BH_Mapped for clean unwritten
extents, which is why a clean unwritten bh falls through to the
"nothing to do" path.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260714080044.4038124-6-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
