Commit 89c6c1d
iomap: drop the write failure handles when unsharing and zeroing
Unsharing and zeroing can only happen within EOF, so there is never a
need to perform posteof pagecache truncation if write begin fails, also
partial write could never theoretically happened from iomap_write_end(),
so remove both of them.
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 0fac04e commit 89c6c1d
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
828 | 827 | | |
829 | 828 | | |
830 | 829 | | |
| |||
901 | 900 | | |
902 | 901 | | |
903 | 902 | | |
904 | | - | |
905 | | - | |
906 | 903 | | |
907 | 904 | | |
908 | 905 | | |
| |||
950 | 947 | | |
951 | 948 | | |
952 | 949 | | |
953 | | - | |
| 950 | + | |
| 951 | + | |
954 | 952 | | |
| 953 | + | |
955 | 954 | | |
956 | 955 | | |
957 | 956 | | |
| |||
965 | 964 | | |
966 | 965 | | |
967 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
968 | 970 | | |
969 | 971 | | |
970 | 972 | | |
| |||
0 commit comments