iomap: iomap_write_failed fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 6 May 2022 01:19:13 +0000 (18:19 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 8 May 2022 21:47:42 +0000 (14:47 -0700)
commitb71450e2cc4b3c79f33c5bd276d152af9bd54f79
treec199bc74f148a486d7f7694b33c712cd72d1c27a
parentc5eb0a61238dd6faf37f58c9ce61c9980aaffd7a
iomap: iomap_write_failed fix

The @lend parameter of truncate_pagecache_range() should be the offset
of the last byte of the hole, not the first byte beyond it.

Fixes: ae259a9c8593 ("fs: introduce iomap infrastructure")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c