]> git.ipfire.org Git - thirdparty/linux.git/commit
selftest/mm: skip if fallocate() is unsupported in gup_longterm
authorMark Brown <broonie@kernel.org>
Fri, 13 Jun 2025 11:44:07 +0000 (12:44 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:11 +0000 (22:42 -0700)
commit3e49aa8e6510be458c1120d6d2a9deac9bc40253
tree454dae664860aa354445756818850969ff226035
parent4535cb331cfbdbc73d42887330e46e87a4589e6d
selftest/mm: skip if fallocate() is unsupported in gup_longterm

Currently gup_longterm assumes that filesystems support fallocate() and
uses that to allocate space in files, however this is an optional feature
and is in particular not implemented by NFSv3 which is commonly used in CI
systems leading to spurious failures.  Check for lack of support and
report a skip instead for that case.

Link: https://lkml.kernel.org/r/20250613-selftest-mm-gup-longterm-fallocate-nfs-v1-1-758a104c175f@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/gup_longterm.c