Lines Matching +full:close +full:- +full:range
1 // SPDX-License-Identifier: GPL-2.0-only
3 * GUP long-term page pinning tests.
54 * R/W long-term pinning. For these filesystems, we can be fairly sure in fs_is_unknown()
121 /* Fault in the page such that GUP-fast can pin it directly. */ in do_test()
129 * long-term R/O pinning by mapping the page R/O. in do_test()
156 * expected to work. Otherwise, we expect long-term R/W pinning in do_test()
182 * TODO: if the kernel ever supports long-term R/W pinning on in do_test()
209 * Register the range as a fixed buffer. This will FOLL_WRITE | in do_test()
210 * FOLL_PIN | FOLL_LONGTERM the range. in do_test()
257 close(fd); in run_with_memfd()
276 goto close; in run_with_tmpfile()
280 close: in run_with_tmpfile()
299 goto close; in run_with_local_tmpfile()
303 close: in run_with_local_tmpfile()
304 close(fd); in run_with_local_tmpfile()
325 close(fd); in run_with_memfd_hugetlb()
391 "R/W longterm GUP-fast pin in MAP_SHARED file mapping",
399 "R/O longterm GUP-fast pin in MAP_SHARED file mapping",
407 "R/W longterm GUP-fast pin in MAP_PRIVATE file mapping",
415 "R/O longterm GUP-fast pin in MAP_PRIVATE file mapping",
434 run_with_memfd(test_case->fn, test_case->desc); in run_test_case()
435 run_with_tmpfile(test_case->fn, test_case->desc); in run_test_case()
436 run_with_local_tmpfile(test_case->fn, test_case->desc); in run_test_case()
438 run_with_memfd_hugetlb(test_case->fn, test_case->desc, in run_test_case()