Commit e1f453d
iomap: do some small logical cleanup in buffered write
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>1 parent 815f4b6 commit e1f453d
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | 978 | | |
984 | 979 | | |
985 | 980 | | |
| |||
989 | 984 | | |
990 | 985 | | |
991 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
992 | 990 | | |
993 | 991 | | |
994 | 992 | | |
| |||
0 commit comments