Home
last modified time | relevance | path

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

123

/Linux-v6.6/tools/testing/selftests/mm/
Dhugetlb-madvise.c219 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
266 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
278 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
318 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
Dgup_longterm.c103 if (fallocate(fd, 0, 0, size)) { in do_test()
Dcow.c1481 if (fallocate(fd, 0, 0, pagesize)) { in run_with_memfd()
1532 if (fallocate(fd, 0, 0, pagesize)) { in run_with_tmpfile()
1581 if (fallocate(fd, 0, 0, hugetlbsize)) { in run_with_memfd_hugetlb()
Duffd-common.c33 if (fallocate(mem_fd, in uffd_mem_fd_create()
/Linux-v6.6/tools/testing/selftests/mincore/
Dmincore_selftest.c218 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST()
320 retval = fallocate(fd, 0, 0, FILE_SIZE); in TEST()
/Linux-v6.6/fs/smb/client/
Dcifsfs.c347 if (server->ops->fallocate) in cifs_fallocate()
348 return server->ops->fallocate(file, tcon, mode, off, len); in cifs_fallocate()
1386 .fallocate = cifs_fallocate,
1406 .fallocate = cifs_fallocate,
1426 .fallocate = cifs_fallocate,
1444 .fallocate = cifs_fallocate,
1462 .fallocate = cifs_fallocate,
1480 .fallocate = cifs_fallocate,
/Linux-v6.6/tools/testing/selftests/memfd/
Dmemfd_test.c495 r = fallocate(fd, in mfd_assert_write()
560 r = fallocate(fd, in mfd_fail_write()
617 r = fallocate(fd, in mfd_assert_grow()
639 r = fallocate(fd, in mfd_fail_grow()
/Linux-v6.6/arch/um/os-Linux/
Dfile.c621 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_punch()
630 int n = fallocate(fd, FALLOC_FL_ZERO_RANGE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_zeroes()
/Linux-v6.6/fs/
Dopen.c320 if (!file->f_op->fallocate) in vfs_fallocate()
324 ret = file->f_op->fallocate(file, mode, offset, len); in vfs_fallocate()
353 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) in SYSCALL_DEFINE4() argument
359 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, compat_arg_u64_dual(offset), in COMPAT_SYSCALL_DEFINE6() argument
/Linux-v6.6/arch/sparc/kernel/
Dsys_sparc32.c232 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, u32, offhi, u32, offlo, in COMPAT_SYSCALL_DEFINE6() argument
/Linux-v6.6/arch/parisc/kernel/syscalls/
Dsyscall.tbl345 305 32 fallocate parisc_fallocate
346 305 64 fallocate sys_fallocate
/Linux-v6.6/ipc/
Dshm.c644 if (!sfd->file->f_op->fallocate) in shm_fallocate()
646 return sfd->file->f_op->fallocate(file, mode, offset, len); in shm_fallocate()
665 .fallocate = shm_fallocate,
678 .fallocate = shm_fallocate,
/Linux-v6.6/drivers/target/
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-v6.6/arch/powerpc/kernel/syscalls/
Dsyscall.tbl400 309 32 fallocate sys_ppc_fallocate compat_sys_fallocate
401 309 64 fallocate sys_fallocate
/Linux-v6.6/tools/perf/arch/powerpc/entry/syscalls/
Dsyscall.tbl400 309 32 fallocate sys_ppc_fallocate compat_sys_fallocate
401 309 64 fallocate sys_fallocate
/Linux-v6.6/fs/nfs/
Dnfs4file.c464 .fallocate = nfs42_fallocate,
/Linux-v6.6/fs/fat/
Dfile.c214 .fallocate = fat_fallocate,
/Linux-v6.6/Documentation/filesystems/
Dvfat.rst228 when using fallocate with FALLOC_FL_KEEP_SIZE.
232 the fallocated region, user should make sure to recheck fallocate
Dlocking.rst541 long (*fallocate)(struct file *, int, loff_t, loff_t);
583 ->fallocate implementation must be really careful to maintain page cache
592 readahead paths), the fallocate implementation must take the invalidate_lock to
/Linux-v6.6/arch/mips/kernel/syscalls/
Dsyscall_n64.tbl290 279 n64 fallocate sys_fallocate
Dsyscall_n32.tbl294 283 n32 fallocate sys_fallocate
/Linux-v6.6/arch/ia64/kernel/syscalls/
Dsyscall.tbl291 279 common fallocate sys_fallocate
/Linux-v6.6/tools/perf/arch/mips/entry/syscalls/
Dsyscall_n64.tbl290 279 n64 fallocate sys_fallocate
/Linux-v6.6/fs/gfs2/
Dfile.c1581 .fallocate = gfs2_fallocate,
1612 .fallocate = gfs2_fallocate,
/Linux-v6.6/arch/xtensa/kernel/syscalls/
Dsyscall.tbl73 62 common fallocate sys_fallocate

123