/linux-6.3-rc2/include/uapi/linux/ |
A D | falloc.h | 5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
|
/linux-6.3-rc2/block/ |
A D | fops.c | 615 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 636 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate() 658 case FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 663 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 668 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE | FALLOC_FL_NO_HIDE_STALE: in blkdev_fallocate()
|
/linux-6.3-rc2/include/linux/ |
A D | falloc.h | 28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
|
/linux-6.3-rc2/drivers/nvme/target/ |
A D | io-cmd-file.c | 275 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard() 337 int mode = FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE; in nvmet_file_write_zeroes_work()
|
/linux-6.3-rc2/fs/fat/ |
A 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.3-rc2/arch/um/os-Linux/ |
A 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.3-rc2/tools/testing/selftests/mm/ |
A D | hugetlb-madvise.c | 285 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
|
A D | userfaultfd.c | 1839 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in main()
|
/linux-6.3-rc2/fs/ |
A 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()
|
A D | open.c | 263 !(mode & FALLOC_FL_KEEP_SIZE)) in vfs_fallocate() 278 (mode & ~(FALLOC_FL_UNSHARE_RANGE | FALLOC_FL_KEEP_SIZE))) in vfs_fallocate() 287 if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode)) in vfs_fallocate()
|
/linux-6.3-rc2/fs/gfs2/ |
A D | file.c | 1332 if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) in __gfs2_fallocate() 1357 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate() 1370 if (!(mode & FALLOC_FL_KEEP_SIZE) && in gfs2_fallocate()
|
/linux-6.3-rc2/tools/testing/selftests/memfd/ |
A D | memfd_test.c | 466 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_assert_write() 531 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_fail_write()
|
/linux-6.3-rc2/fs/nfs/ |
A D | nfs4file.c | 227 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
|
/linux-6.3-rc2/fs/ntfs3/ |
A D | file.c | 465 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate() 632 if (mode & FALLOC_FL_KEEP_SIZE) { in ntfs_fallocate()
|
/linux-6.3-rc2/fs/xfs/ |
A 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.3-rc2/fs/fuse/ |
A D | file.c | 3043 (!(mode & FALLOC_FL_KEEP_SIZE) || in fuse_file_fallocate() 3046 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate() 3069 if (!(mode & FALLOC_FL_KEEP_SIZE) && in fuse_file_fallocate() 3080 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate() 3097 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_file_fallocate() 3108 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
|
/linux-6.3-rc2/fs/cachefiles/ |
A D | io.c | 587 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
|
/linux-6.3-rc2/fs/hugetlbfs/ |
A D | inode.c | 782 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.3-rc2/fs/ksmbd/ |
A D | vfs.c | 1013 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data() 1017 FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
|
/linux-6.3-rc2/drivers/target/ |
A D | target_core_file.c | 568 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/aarch64/ |
A D | page_fault_test.c | 416 ret = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in punch_hole_in_backing_store()
|
/linux-6.3-rc2/fs/btrfs/ |
A D | file.c | 2805 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) in btrfs_fallocate_update_isize() 3058 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in btrfs_fallocate() 3067 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { in btrfs_fallocate()
|
/linux-6.3-rc2/mm/ |
A D | madvise.c | 1002 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
|
/linux-6.3-rc2/fs/ocfs2/ |
A 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.3-rc2/Documentation/filesystems/ |
A D | vfat.rst | 228 when using fallocate with FALLOC_FL_KEEP_SIZE.
|