/linux-6.12.1/tools/testing/selftests/kvm/ |
D | guest_memfd_test.c | 60 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); in test_fallocate() 63 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate() 67 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); in test_fallocate() 70 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size); in test_fallocate() 73 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate() 77 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate() 81 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate() 85 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate() 89 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, page_size, page_size); in test_fallocate() 115 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_invalid_punch_hole()
|
/linux-6.12.1/tools/testing/selftests/mm/ |
D | hugetlb-madvise.c | 201 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main() 248 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main() 260 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main() 300 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
|
D | gup_longterm.c | 103 if (fallocate(fd, 0, 0, size)) { in do_test()
|
D | cow.c | 1574 if (fallocate(fd, 0, 0, pagesize)) { in run_with_memfd() 1625 if (fallocate(fd, 0, 0, pagesize)) { in run_with_tmpfile() 1674 if (fallocate(fd, 0, 0, hugetlbsize)) { in run_with_memfd_hugetlb()
|
D | uffd-common.c | 35 if (fallocate(mem_fd, in uffd_mem_fd_create()
|
/linux-6.12.1/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 218 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST() 320 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST()
|
/linux-6.12.1/fs/smb/client/ |
D | cifsfs.c | 356 if (server->ops->fallocate) in cifs_fallocate() 357 return server->ops->fallocate(file, tcon, mode, off, len); in cifs_fallocate() 1500 .fallocate = cifs_fallocate, 1520 .fallocate = cifs_fallocate, 1540 .fallocate = cifs_fallocate, 1558 .fallocate = cifs_fallocate, 1576 .fallocate = cifs_fallocate, 1594 .fallocate = cifs_fallocate,
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | private_mem_conversions_test.c | 431 r = fallocate(memfd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, memfd_size); in test_mem_conversions() 434 r = fallocate(memfd, FALLOC_FL_KEEP_SIZE, 0, memfd_size); in test_mem_conversions()
|
/linux-6.12.1/tools/testing/selftests/memfd/ |
D | memfd_test.c | 492 r = fallocate(fd, in mfd_assert_write() 557 r = fallocate(fd, in mfd_fail_write() 614 r = fallocate(fd, in mfd_assert_grow() 636 r = fallocate(fd, in mfd_fail_grow()
|
/linux-6.12.1/arch/um/os-Linux/ |
D | file.c | 639 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_punch() 648 int n = fallocate(fd, FALLOC_FL_ZERO_RANGE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_zeroes()
|
/linux-6.12.1/fs/ |
D | open.c | 329 if (!file->f_op->fallocate) in vfs_fallocate() 333 ret = file->f_op->fallocate(file, mode, offset, len); in vfs_fallocate() 362 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) in SYSCALL_DEFINE4() argument 368 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, compat_arg_u64_dual(offset), in COMPAT_SYSCALL_DEFINE6() argument
|
/linux-6.12.1/arch/sparc/kernel/ |
D | sys_sparc32.c | 232 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, u32, offhi, u32, offlo, in COMPAT_SYSCALL_DEFINE6() argument
|
/linux-6.12.1/ipc/ |
D | shm.c | 640 if (!sfd->file->f_op->fallocate) in shm_fallocate() 642 return sfd->file->f_op->fallocate(file, mode, offset, len); in shm_fallocate() 661 .fallocate = shm_fallocate, 674 .fallocate = shm_fallocate,
|
/linux-6.12.1/arch/parisc/kernel/syscalls/ |
D | syscall.tbl | 345 305 32 fallocate parisc_fallocate 346 305 64 fallocate sys_fallocate
|
/linux-6.12.1/drivers/target/ |
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-6.12.1/arch/powerpc/kernel/syscalls/ |
D | syscall.tbl | 404 309 32 fallocate sys_ppc_fallocate compat_sys_fallocate 405 309 64 fallocate sys_fallocate
|
/linux-6.12.1/tools/perf/arch/powerpc/entry/syscalls/ |
D | syscall.tbl | 404 309 32 fallocate sys_ppc_fallocate compat_sys_fallocate 405 309 64 fallocate sys_fallocate
|
/linux-6.12.1/fs/nfs/ |
D | nfs4file.c | 465 .fallocate = nfs42_fallocate,
|
/linux-6.12.1/Documentation/filesystems/ |
D | vfat.rst | 228 when using fallocate with FALLOC_FL_KEEP_SIZE. 232 the fallocated region, user should make sure to recheck fallocate
|
D | locking.rst | 544 long (*fallocate)(struct file *, int, loff_t, loff_t); 586 ->fallocate implementation must be really careful to maintain page cache 595 readahead paths), the fallocate implementation must take the invalidate_lock to
|
/linux-6.12.1/fs/fat/ |
D | file.c | 214 .fallocate = fat_fallocate,
|
/linux-6.12.1/fs/overlayfs/ |
D | file.c | 611 .fallocate = ovl_fallocate,
|
/linux-6.12.1/fs/gfs2/ |
D | file.c | 1588 .fallocate = gfs2_fallocate, 1619 .fallocate = gfs2_fallocate,
|
/linux-6.12.1/tools/perf/arch/mips/entry/syscalls/ |
D | syscall_n64.tbl | 290 279 n64 fallocate sys_fallocate
|
/linux-6.12.1/virt/kvm/ |
D | guest_memfd.c | 308 .fallocate = kvm_gmem_fallocate,
|