/linux-6.1.9/include/uapi/linux/ |
D | falloc.h | 5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
|
/linux-6.1.9/block/ |
D | fops.c | 607 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 628 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate() 650 case FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 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/include/linux/ |
D | falloc.h | 28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
|
/linux-6.1.9/drivers/nvme/target/ |
D | io-cmd-file.c | 281 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard() 343 int mode = FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE; in nvmet_file_write_zeroes_work()
|
/linux-6.1.9/fs/fat/ |
D | file.c | 272 if (mode & ~FALLOC_FL_KEEP_SIZE) in fat_fallocate() 280 if (mode & FALLOC_FL_KEEP_SIZE) { in fat_fallocate()
|
/linux-6.1.9/arch/um/os-Linux/ |
D | file.c | 621 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-6.1.9/tools/testing/selftests/vm/ |
D | hugetlb-madvise.c | 290 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
|
D | userfaultfd.c | 1859 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in main()
|
/linux-6.1.9/tools/testing/selftests/memfd/ |
D | memfd_test.c | 398 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/ |
D | ioctl.c | 290 return vfs_fallocate(filp, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, in ioctl_preallocate() 319 return vfs_fallocate(file, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in compat_ioctl_preallocate()
|
D | open.c | 262 !(mode & FALLOC_FL_KEEP_SIZE)) in vfs_fallocate() 277 (mode & ~(FALLOC_FL_UNSHARE_RANGE | FALLOC_FL_KEEP_SIZE))) in vfs_fallocate() 286 if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode)) in vfs_fallocate()
|
/linux-6.1.9/fs/gfs2/ |
D | file.c | 1331 if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) in __gfs2_fallocate() 1356 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate() 1369 if (!(mode & FALLOC_FL_KEEP_SIZE) && in gfs2_fallocate()
|
/linux-6.1.9/fs/nfs/ |
D | nfs4file.c | 231 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
|
/linux-6.1.9/fs/fuse/ |
D | file.c | 2967 (!(mode & FALLOC_FL_KEEP_SIZE) || in fuse_file_fallocate() 2970 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate() 2993 if (!(mode & FALLOC_FL_KEEP_SIZE) && in fuse_file_fallocate() 3004 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate() 3021 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_file_fallocate() 3032 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
|
/linux-6.1.9/fs/xfs/ |
D | xfs_file.c | 882 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 993 if (!(mode & FALLOC_FL_KEEP_SIZE) && in xfs_file_fallocate()
|
/linux-6.1.9/fs/ntfs3/ |
D | file.c | 560 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate() 732 if (mode & FALLOC_FL_KEEP_SIZE) { in ntfs_fallocate()
|
/linux-6.1.9/fs/cachefiles/ |
D | io.c | 565 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
|
/linux-6.1.9/fs/hugetlbfs/ |
D | inode.c | 784 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in hugetlbfs_fallocate() 893 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) in hugetlbfs_fallocate()
|
/linux-6.1.9/fs/ksmbd/ |
D | vfs.c | 1012 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data() 1016 FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
|
/linux-6.1.9/drivers/target/ |
D | target_core_file.c | 575 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
|
/linux-6.1.9/mm/ |
D | madvise.c | 992 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
|
/linux-6.1.9/fs/btrfs/ |
D | file.c | 3115 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) in btrfs_fallocate_update_isize() 3368 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in btrfs_fallocate() 3377 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { in btrfs_fallocate()
|
/linux-6.1.9/fs/ocfs2/ |
D | file.c | 2104 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in ocfs2_fallocate() 2109 if (mode & FALLOC_FL_KEEP_SIZE) in ocfs2_fallocate()
|
/linux-6.1.9/Documentation/filesystems/ |
D | vfat.rst | 228 when using fallocate with FALLOC_FL_KEEP_SIZE.
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 639 r = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, size); in kvm_memfd_alloc()
|