]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: remove the iomap_file_buffered_write_punch_delalloc return value
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Sep 2024 04:39:07 +0000 (07:39 +0300)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Sep 2024 09:14:15 +0000 (11:14 +0200)
commit4bceb9ba05aca23652567fb5f899cc7fcb12c8d0
treee77d1fd08e3a11076491ec552efd22bdbf27cac3
parent492f53758fad4fde3e9a98696780f8b53f87cdae
iomap: remove the iomap_file_buffered_write_punch_delalloc return value

iomap_file_buffered_write_punch_delalloc can only return errors if either
the ->punch callback returned an error, or if someone changed the API of
mapping_seek_hole_data to return a negative error code that is not
-ENXIO.

As the only instance of ->punch never returns an error, an such an error
would be fatal anyway remove the entire error propagation and don't
return an error code from iomap_file_buffered_write_punch_delalloc.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240910043949.3481298-6-hch@lst.de
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c
fs/xfs/xfs_iomap.c
include/linux/iomap.h