diff options
| author | Zhang Yi <yi.zhang@huawei.com> | 2026-01-05 09:45:21 +0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-01-19 22:28:30 -0500 |
| commit | 5ca28af074ad506c95a8f86a5d260562f3caa39b (patch) | |
| tree | 61d456d7075bc5da91eb8fa56bce53fcc7987520 /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 8bd1f257af1c21d34f8758f4e36854970e1dc2f5 (diff) | |
ext4: simplify the mapping query logic in ext4_iomap_begin()
In the write path mapping check of ext4_iomap_begin(), the return value
'ret' should never greater than orig_mlen. If 'ret' equals 'orig_mlen',
it can be returned directly without checking IOMAP_ATOMIC.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://patch.msgid.link/20260105014522.1937690-7-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
