Home
last modified time | relevance | path

Searched refs:fallocate (Results 1 – 25 of 49) sorted by relevance

12

/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c63 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, in test_mmap_supported()
285 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); in test_fallocate()
288 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
292 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); in test_fallocate()
295 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size); in test_fallocate()
298 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
302 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
306 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
310 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
314 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, page_size, page_size); in test_fallocate()
[all …]
/linux/tools/testing/selftests/mm/
H A Dhugetlb-madvise.c193 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
194 perror("fallocate"); in main()
234 * The fallocate below certainly should free the pages associated in main()
240 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
242 perror("fallocate"); in main()
252 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
253 perror("fallocate"); in main()
292 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
293 perror("fallocate"); in main()
H A Dgup_longterm.c116 if (fallocate(fd, 0, 0, size)) { in do_test()
H A Dcow.c1662 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 Duffd-common.c45 if (fallocate(mem_fd, in uffd_mem_fd_create()
/linux/tools/testing/selftests/mincore/
H A Dmincore_selftest.c218 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST()
315 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST()
/linux/tools/testing/selftests/ublk/
H A Dtest_shmemzc_03.sh45 fallocate -l 4M "$HTLB_FILE"
H A Dtest_shmemzc_02.sh45 fallocate -l 4M "$HTLB_FILE"
H A Dtest_shmemzc_04.sh45 fallocate -l 4M "$HTLB_FILE"
H A Dtest_shmemzc_01.sh45 fallocate -l 4M "$HTLB_FILE"
/linux/fs/smb/client/
H A Dcifsfs.c371 if (!server->ops->fallocate) in cifs_fallocate()
384 rc = server->ops->fallocate(file, tcon, mode, off, len); in cifs_fallocate()
1593 .fallocate = cifs_fallocate,
1613 .fallocate = cifs_fallocate,
1633 .fallocate = cifs_fallocate,
1651 .fallocate = cifs_fallocate,
1669 .fallocate = cifs_fallocate,
1687 .fallocate = cifs_fallocate,
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_syscalls.h78 __KVM_SYSCALL_DEFINE(fallocate, 4, int, fd, int, mode, loff_t, offset, loff_t, len);
/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c528 r = fallocate(fd, in mfd_assert_write()
593 r = fallocate(fd, in mfd_fail_write()
650 r = fallocate(fd, in mfd_assert_grow()
672 r = fallocate(fd, in mfd_fail_grow()
/linux/arch/um/os-Linux/
H A Dfile.c618 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/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c237 if (CHECK(fallocate(localfd, 0, 0, 1024) < 0, "trigger", "fallocate failed\n")) in test_d_path_mem_access()
/linux/ipc/
H A Dshm.c645 if (!sfd->file->f_op->fallocate) in shm_fallocate()
647 return sfd->file->f_op->fallocate(file, mode, offset, len); in shm_fallocate()
666 .fallocate = shm_fallocate,
679 .fallocate = shm_fallocate,
/linux/drivers/target/
H A Dtarget_core_file.c570 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 Dnfs4file.c453 .fallocate = nfs42_fallocate,
/linux/tools/perf/arch/powerpc/entry/syscalls/
H A Dsyscall.tbl404 309 32 fallocate sys_ppc_fallocate compat_sys_fallocate
405 309 64 fallocate sys_fallocate
/linux/Documentation/filesystems/
H A Dvfat.rst228 when using fallocate with FALLOC_FL_KEEP_SIZE.
232 the fallocated region, user should make sure to recheck fallocate
/linux/fs/gfs2/
H A Dfile.c1596 .fallocate = gfs2_fallocate,
1629 .fallocate = gfs2_fallocate,
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl290 279 n64 fallocate sys_fallocate
/linux/scripts/
H A Dsyscall.tbl65 47 common fallocate sys_fallocate compat_sys_fallocate
/linux/tools/scripts/
H A Dsyscall.tbl65 47 common fallocate sys_fallocate compat_sys_fallocate
/linux/tools/perf/arch/s390/entry/syscalls/
H A Dsyscall.tbl268 314 common fallocate sys_fallocate

12