]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9f339a8154db70c159385e50822e6d364d2b09b
treec199bc74f148a486d7f7694b33c712cd72d1c27a
parent48b4b86538c8f7c4593ade46ab86104d8256d668
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: 8c7414753f6b ("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