Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Bernd Schubert and committed by
Miklos Szeredi
59ba47b6 129a45f9

+3
+3
fs/fuse/dev.c
··· 1011 1011 folio_clear_uptodate(newfolio); 1012 1012 folio_clear_mappedtodisk(newfolio); 1013 1013 1014 + if (folio_test_large(newfolio)) 1015 + goto out_fallback_unlock; 1016 + 1014 1017 if (fuse_check_folio(newfolio) != 0) 1015 1018 goto out_fallback_unlock; 1016 1019