| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 63 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, in test_mmap_supported() 65 TEST_ASSERT(!ret, "fallocate the first page should succeed."); in test_mmap_supported() 285 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); in test_fallocate() 286 TEST_ASSERT(!ret, "fallocate with aligned offset and size should succeed"); in test_fallocate() 288 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate() 290 TEST_ASSERT(ret, "fallocate with unaligned offset should fail"); in test_fallocate() 292 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); in test_fallocate() 293 TEST_ASSERT(ret, "fallocate beginning at total_size should fail"); in test_fallocate() 295 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size); in test_fallocate() 296 TEST_ASSERT(ret, "fallocate beginnin in test_fallocate() [all...] |
| /linux/tools/testing/selftests/mm/ |
| H A D | hugetlb-madvise.c | 165 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) in main() 166 ksft_exit_fail_perror("fallocate"); in main() 201 * The fallocate below certainly should free the pages associated in main() 207 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main() 209 ksft_exit_fail_perror("fallocate"); in main() 218 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) in main() 219 ksft_exit_fail_perror("fallocate"); in main() 253 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) in main() 254 ksft_exit_fail_perror("fallocate"); in main()
|
| H A D | gup_longterm.c | 117 if (fallocate(fd, 0, 0, size)) { in do_test() 120 * fallocate(), report this as a skip rather than a in do_test() 124 ksft_print_msg("fallocate() not supported by filesystem\n"); in do_test() 127 ksft_print_msg("fallocate() failed (%s)\n", strerror(errno)); in do_test()
|
| H A D | cow.c | 1662 if (fallocate(fd, 0, 0, pagesize)) { in run_with_memfd() 1663 ksft_perror("fallocate() failed"); in run_with_memfd() 1720 if (fallocate(fd, 0, 0, pagesize)) { in run_with_tmpfile() 1721 ksft_perror("fallocate() failed"); in run_with_tmpfile() 1775 if (fallocate(fd, 0, 0, hugetlbsize)) { in run_with_memfd_hugetlb()
|
| H A D | uffd-common.c | 45 if (fallocate(mem_fd, in uffd_mem_fd_create() 48 err("fallocate"); in uffd_mem_fd_create()
|
| /linux/tools/testing/selftests/mincore/ |
| H A D | mincore_selftest.c | 218 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST() 224 SKIP(goto out_close, "fallocate not supported by filesystem."); in TEST() 323 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST()
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | test_shmemzc_03.sh | 45 fallocate -l 4M "$HTLB_FILE"
|
| H A D | test_shmemzc_02.sh | 45 fallocate -l 4M "$HTLB_FILE"
|
| H A D | test_shmemzc_04.sh | 45 fallocate -l 4M "$HTLB_FILE"
|
| H A D | test_shmemzc_01.sh | 45 fallocate -l 4M "$HTLB_FILE"
|
| /linux/fs/smb/client/ |
| H A D | cifsfs.c | 385 if (!server->ops->fallocate) in cifs_fallocate() 398 rc = server->ops->fallocate(file, tcon, mode, off, len); in cifs_fallocate() 1674 .fallocate = cifs_fallocate, 1694 .fallocate = cifs_fallocate, 1714 .fallocate = cifs_fallocate, 1732 .fallocate = cifs_fallocate, 1750 .fallocate = cifs_fallocate, 1768 .fallocate = cifs_fallocate,
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_syscalls.h | 88 __KVM_SYSCALL_DEFINE(fallocate, 4, int, fd, int, mode, loff_t, offset, loff_t, len);
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | cgroup_iter_memcg.c | 146 if (!ASSERT_OK(fallocate(fd, 0, 0, len), "fallocate")) in test_shmem()
|
| H A D | d_path.c | 237 if (CHECK(fallocate(localfd, 0, 0, 1024) < 0, "trigger", "fallocate failed\n")) in test_d_path_mem_access()
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 528 r = fallocate(fd, in mfd_assert_write() 533 printf("fallocate(PUNCH_HOLE) failed: %m\n"); in mfd_assert_write() 593 r = fallocate(fd, in mfd_fail_write() 598 printf("fallocate(PUNCH_HOLE) didn't fail as expected\n"); in mfd_fail_write() 650 r = fallocate(fd, in mfd_assert_grow() 655 printf("fallocate(ALLOC) failed: %m\n"); in mfd_assert_grow() 672 r = fallocate(fd, in mfd_fail_grow() 677 printf("fallocate(ALLOC) didn't fail as expected\n"); in mfd_fail_grow()
|
| /linux/arch/um/os-Linux/ |
| H A D | file.c | 618 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_punch() 627 int n = fallocate(fd, FALLOC_FL_ZERO_RANGE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_zeroes()
|
| /linux/drivers/target/ |
| H A D | target_core_file.c | 570 if (!file->f_op->fallocate) in fd_execute_unmap() 573 ret = file->f_op->fallocate(file, mode, pos, len); in fd_execute_unmap()
|
| /linux/fs/nfs/ |
| H A D | nfs4file.c | 453 .fallocate = nfs42_fallocate,
|
| /linux/tools/perf/arch/powerpc/entry/syscalls/ |
| H A D | syscall.tbl | 404 309 32 fallocate sys_ppc_fallocate compat_sys_fallocate 405 309 64 fallocate sys_fallocate
|
| /linux/Documentation/filesystems/ |
| H A D | vfat.rst | 228 when using fallocate with FALLOC_FL_KEEP_SIZE. 232 the fallocated region, user should make sure to recheck fallocate
|
| /linux/tools/perf/arch/mips/entry/syscalls/ |
| H A D | syscall_n64.tbl | 290 279 n64 fallocate sys_fallocate
|
| /linux/fs/overlayfs/ |
| H A D | file.c | 657 .fallocate = ovl_fallocate,
|
| /linux/fs/gfs2/ |
| H A D | file.c | 1605 .fallocate = gfs2_fallocate, 1638 .fallocate = gfs2_fallocate,
|
| /linux/scripts/ |
| H A D | syscall.tbl | 65 47 common fallocate sys_fallocate compat_sys_fallocate
|
| /linux/tools/scripts/ |
| H A D | syscall.tbl | 65 47 common fallocate sys_fallocate compat_sys_fallocate
|