Home
last modified time | relevance | path

Searched refs:FALLOC_FL_PUNCH_HOLE (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.1.9/include/uapi/linux/
Dfalloc.h6 #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ macro
/linux-6.1.9/include/linux/
Dfalloc.h29 FALLOC_FL_PUNCH_HOLE | \
/linux-6.1.9/block/
Dfops.c607 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
655 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate()
660 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE | FALLOC_FL_NO_HIDE_STALE: in blkdev_fallocate()
/linux-6.1.9/fs/nfs/
Dnfs4file.c231 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
238 if (mode & FALLOC_FL_PUNCH_HOLE) in nfs42_fallocate()
/linux-6.1.9/fs/ntfs3/
Dfile.c552 if (mode & FALLOC_FL_PUNCH_HOLE) { in ntfs_fallocate()
560 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate()
580 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_COLLAPSE_RANGE | in ntfs_fallocate()
587 if (mode & FALLOC_FL_PUNCH_HOLE) { in ntfs_fallocate()
/linux-6.1.9/fs/xfs/
Dxfs_file.c882 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
933 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE | in xfs_file_fallocate()
944 if (mode & FALLOC_FL_PUNCH_HOLE) { in xfs_file_fallocate()
/linux-6.1.9/tools/testing/selftests/vm/
Dhugetlb-madvise.c290 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
Duserfaultfd.c1859 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in main()
/linux-6.1.9/tools/testing/selftests/memfd/
Dmemfd_test.c398 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_assert_write()
463 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_fail_write()
/linux-6.1.9/fs/
Dioctl.c333 return ioctl_preallocate(filp, FALLOC_FL_PUNCH_HOLE, p); in file_ioctl()
938 error = compat_ioctl_preallocate(f.file, FALLOC_FL_PUNCH_HOLE, in COMPAT_SYSCALL_DEFINE3()
Dopen.c256 if ((mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) == in vfs_fallocate()
257 (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) in vfs_fallocate()
261 if ((mode & FALLOC_FL_PUNCH_HOLE) && in vfs_fallocate()
/linux-6.1.9/drivers/nvme/target/
Dio-cmd-file.c281 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard()
/linux-6.1.9/arch/um/os-Linux/
Dfile.c621 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_punch()
/linux-6.1.9/fs/cachefiles/
Dio.c565 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
/linux-6.1.9/fs/gfs2/
Dfile.c1356 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate()
1380 if (mode & FALLOC_FL_PUNCH_HOLE) { in gfs2_fallocate()
/linux-6.1.9/fs/hugetlbfs/
Dinode.c784 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in hugetlbfs_fallocate()
787 if (mode & FALLOC_FL_PUNCH_HOLE) in hugetlbfs_fallocate()
/linux-6.1.9/fs/fuse/
Dfile.c2968 (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE))); in fuse_file_fallocate()
2970 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate()
2985 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) { in fuse_file_fallocate()
3026 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) in fuse_file_fallocate()
/linux-6.1.9/drivers/target/
Dtarget_core_file.c575 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/linux-6.1.9/drivers/block/
Dloop.c488 FALLOC_FL_PUNCH_HOLE); in do_req_filebacked()
490 return lo_fallocate(lo, rq, pos, FALLOC_FL_PUNCH_HOLE); in do_req_filebacked()
/linux-6.1.9/mm/
Dmadvise.c992 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
/linux-6.1.9/fs/ocfs2/
Dfile.c2104 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in ocfs2_fallocate()
2112 if (mode & FALLOC_FL_PUNCH_HOLE) in ocfs2_fallocate()
/linux-6.1.9/Documentation/filesystems/
Dporting.rst442 file) you must return -EOPNOTSUPP if FALLOC_FL_PUNCH_HOLE is set in mode.
443 Currently you can only have FALLOC_FL_PUNCH_HOLE with FALLOC_FL_KEEP_SIZE set,
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c639 r = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, size); in kvm_memfd_alloc()
/linux-6.1.9/fs/f2fs/
Dfile.c1815 (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_COLLAPSE_RANGE | in f2fs_fallocate()
1819 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in f2fs_fallocate()
1830 if (mode & FALLOC_FL_PUNCH_HOLE) { in f2fs_fallocate()
/linux-6.1.9/fs/ksmbd/
Dvfs.c1012 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()

12