]> 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)
commit0429c55ce1c1f2dadcd45ed27a22e65da801e090
treec199bc74f148a486d7f7694b33c712cd72d1c27a
parent2cfa457375083d2757182a38d8bb227aa92a2db7
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: 94f15e444f0f ("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