Home
last modified time | relevance | path

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

12

/Linux-v6.1/include/uapi/linux/
Dfalloc.h6 #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ macro
/Linux-v6.1/include/linux/
Dfalloc.h29 FALLOC_FL_PUNCH_HOLE | \
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/drivers/nvme/target/
Dio-cmd-file.c291 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard()
/Linux-v6.1/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-v6.1/fs/cachefiles/
Dio.c565 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/drivers/target/
Dtarget_core_file.c575 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/Linux-v6.1/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-v6.1/mm/
Dmadvise.c992 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/fs/ksmbd/
Dvfs.c1012 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()

12