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 <yi.zhang@huawei.com>
Link: https://lore.kernel.org/r/20240320110548.2200662-6-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>1 parent 0fac04e commit 89c6c1d
1 file changed
Lines changed: 6 additions & 4 deletions
| 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