Commit 3f59c75
iomap: do some small logical cleanup in buffered write
mainline inclusion
from mainline-v6.10-rc1
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9DN5Z
CVE: NA
--------------------------------
Since iomap_write_end() can never return a partial write length, the
comparison between written, copied and bytes becomes useless, just
merge them with the unwritten branch.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://lore.kernel.org/r/20240320110548.2200662-10-yi.zhang@huaweicloud.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
(cherry picked from commit e1f453d)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent b0b2142 commit 3f59c75
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | 976 | | |
982 | 977 | | |
983 | 978 | | |
| |||
987 | 982 | | |
988 | 983 | | |
989 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
990 | 988 | | |
991 | 989 | | |
992 | 990 | | |
| |||
0 commit comments