Home
last modified time | relevance | path

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

12

/openbmc/linux/include/uapi/linux/
H A Dfalloc.h6 #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ macro
/openbmc/linux/include/linux/
H A Dfalloc.h29 FALLOC_FL_PUNCH_HOLE | \
/openbmc/linux/fs/nfs/
H A Dnfs4file.c227 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
234 if (mode & FALLOC_FL_PUNCH_HOLE) in nfs42_fallocate()
/openbmc/linux/fs/ntfs3/
H A Dfile.c452 if (mode & FALLOC_FL_PUNCH_HOLE) { in ntfs_fallocate()
460 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate()
480 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_COLLAPSE_RANGE | in ntfs_fallocate()
487 if (mode & FALLOC_FL_PUNCH_HOLE) { in ntfs_fallocate()
/openbmc/linux/block/
H A Dfops.c740 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
791 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate()
800 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE | FALLOC_FL_NO_HIDE_STALE: in blkdev_fallocate()
/openbmc/linux/tools/testing/selftests/mm/
H A Dhugetlb-madvise.c266 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
H A Duffd-common.c35 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in uffd_mem_fd_create()
/openbmc/linux/fs/xfs/
H A Dxfs_file.c934 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
985 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE | in xfs_file_fallocate()
996 if (mode & FALLOC_FL_PUNCH_HOLE) { in xfs_file_fallocate()
/openbmc/linux/fs/
H A Dioctl.c334 return ioctl_preallocate(filp, FALLOC_FL_PUNCH_HOLE, p); in file_ioctl()
941 error = compat_ioctl_preallocate(f.file, FALLOC_FL_PUNCH_HOLE, in COMPAT_SYSCALL_DEFINE3()
H A Dopen.c257 if ((mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) == in vfs_fallocate()
258 (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) in vfs_fallocate()
262 if ((mode & FALLOC_FL_PUNCH_HOLE) && in vfs_fallocate()
/openbmc/linux/drivers/nvme/target/
H A Dio-cmd-file.c275 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard()
/openbmc/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c497 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_assert_write()
562 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_fail_write()
/openbmc/linux/arch/um/os-Linux/
H A Dfile.c621 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_punch()
/openbmc/linux/fs/gfs2/
H A Dfile.c1368 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate()
1392 if (mode & FALLOC_FL_PUNCH_HOLE) { in gfs2_fallocate()
/openbmc/qemu/block/export/
H A Dfuse.c719 else if (mode & FALLOC_FL_PUNCH_HOLE) { in fuse_fallocate()
/openbmc/linux/fs/cachefiles/
H A Dio.c577 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
/openbmc/linux/fs/hugetlbfs/
H A Dinode.c838 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in hugetlbfs_fallocate()
841 if (mode & FALLOC_FL_PUNCH_HOLE) in hugetlbfs_fallocate()
/openbmc/linux/fs/fuse/
H A Dfile.c3014 (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE))); in fuse_file_fallocate()
3016 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate()
3031 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) { in fuse_file_fallocate()
3072 if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) in fuse_file_fallocate()
/openbmc/linux/drivers/target/
H A Dtarget_core_file.c572 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/openbmc/linux/drivers/block/
H A Dloop.c483 FALLOC_FL_PUNCH_HOLE); in do_req_filebacked()
485 return lo_fallocate(lo, rq, pos, FALLOC_FL_PUNCH_HOLE); in do_req_filebacked()
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c415 ret = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in punch_hole_in_backing_store()
/openbmc/linux/mm/
H A Dmadvise.c1008 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
/openbmc/qemu/block/
H A Dfile-posix.c1937 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in handle_aiocb_write_zeroes()
1988 int ret = do_fallocate(s->fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in handle_aiocb_write_zeroes_unmap()
2217 ret = do_fallocate(s->fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in handle_aiocb_discard()
/openbmc/linux/fs/ocfs2/
H A Dfile.c2117 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in ocfs2_fallocate()
2130 if (mode & FALLOC_FL_PUNCH_HOLE) in ocfs2_fallocate()
/openbmc/linux/Documentation/filesystems/
H A 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,

12