Skip to content

Commit 59ba47b

Browse files
bsberndMiklos Szeredi
authored andcommitted
fuse: Check for large folio with SPLICE_F_MOVE
xfstest generic/074 and generic/075 complain result in kernel warning messages / page dumps. This is easily reproducible (on 6.19) with CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ALWAYS=y CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ALWAYS=y This just adds a test for large folios fuse_try_move_folio with the same page copy fallback, but to avoid the warnings from fuse_check_folio(). Cc: stable@vger.kernel.org Signed-off-by: Bernd Schubert <bschubert@ddn.com> Signed-off-by: Horst Birthelmer <hbirthelmer@ddn.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 129a45f commit 59ba47b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fs/fuse/dev.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,9 @@ static int fuse_try_move_folio(struct fuse_copy_state *cs, struct folio **foliop
10111011
folio_clear_uptodate(newfolio);
10121012
folio_clear_mappedtodisk(newfolio);
10131013

1014+
if (folio_test_large(newfolio))
1015+
goto out_fallback_unlock;
1016+
10141017
if (fuse_check_folio(newfolio) != 0)
10151018
goto out_fallback_unlock;
10161019

0 commit comments

Comments
 (0)