]> www.infradead.org Git - users/dwmw2/linux.git/commit
iomap: drop the write failure handles when unsharing and zeroing
authorZhang Yi <yi.zhang@huawei.com>
Wed, 20 Mar 2024 11:05:44 +0000 (19:05 +0800)
committerChristian Brauner <brauner@kernel.org>
Thu, 25 Apr 2024 12:23:53 +0000 (14:23 +0200)
commit89c6c1d91ab2dc05c6f4ad504b03169aa32694cc
tree45df566563d52faa2a5657f859fa8f03258711fe
parent0fac04e4e0ea9ca51ac16d1a3d0e5dfe2919a6dd
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>
fs/iomap/buffered-io.c