Commit b73f45a
ext4: remove page offset calculation in ext4_block_truncate_page()
For bs <= ps scenarios, calculating the offset within the block is
sufficient. For bs > ps, an initial page offset calculation can lead to
incorrect behavior. Thus this redundant calculation has been removed.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Message-ID: <20251121090654.631996-3-libaokun@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 5835b13 commit b73f45a
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4193 | 4193 | | |
4194 | 4194 | | |
4195 | 4195 | | |
4196 | | - | |
4197 | 4196 | | |
4198 | 4197 | | |
4199 | 4198 | | |
| |||
4202 | 4201 | | |
4203 | 4202 | | |
4204 | 4203 | | |
4205 | | - | |
4206 | | - | |
| 4204 | + | |
| 4205 | + | |
4207 | 4206 | | |
4208 | 4207 | | |
4209 | 4208 | | |
| |||
0 commit comments