/linux/block/ |
A D | fops.c | 591 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 612 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate() 634 case FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 639 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 644 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE | FALLOC_FL_NO_HIDE_STALE: in blkdev_fallocate()
|
/linux/include/uapi/linux/ |
A D | falloc.h | 5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
|
/linux/include/linux/ |
A D | falloc.h | 28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
|
/linux/drivers/nvme/target/ |
A D | io-cmd-file.c | 300 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard() 362 int mode = FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE; in nvmet_file_write_zeroes_work()
|
/linux/fs/fat/ |
A D | file.c | 271 if (mode & ~FALLOC_FL_KEEP_SIZE) in fat_fallocate() 279 if (mode & FALLOC_FL_KEEP_SIZE) { in fat_fallocate()
|
/linux/tools/testing/selftests/memfd/ |
A D | memfd_test.c | 398 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_assert_write() 462 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_fail_write()
|
/linux/fs/ntfs3/ |
A D | file.c | 549 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate() 571 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in ntfs_fallocate() 706 if (mode & FALLOC_FL_KEEP_SIZE) { in ntfs_fallocate()
|
/linux/fs/ |
A D | open.c | 246 !(mode & FALLOC_FL_KEEP_SIZE)) in vfs_fallocate() 261 (mode & ~(FALLOC_FL_UNSHARE_RANGE | FALLOC_FL_KEEP_SIZE))) in vfs_fallocate() 270 if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode)) in vfs_fallocate()
|
A D | ioctl.c | 294 return vfs_fallocate(filp, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, in ioctl_preallocate() 323 return vfs_fallocate(file, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in compat_ioctl_preallocate()
|
/linux/fs/gfs2/ |
A D | file.c | 1345 if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) in __gfs2_fallocate() 1370 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate() 1383 if (!(mode & FALLOC_FL_KEEP_SIZE) && in gfs2_fallocate()
|
/linux/fs/fuse/ |
A D | file.c | 2936 bool lock_inode = !(mode & FALLOC_FL_KEEP_SIZE) || in fuse_file_fallocate() 2942 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate() 2967 if (!(mode & FALLOC_FL_KEEP_SIZE) && in fuse_file_fallocate() 2974 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate() 2991 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_file_fallocate() 3002 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
|
/linux/fs/nfs/ |
A D | nfs4file.c | 228 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
|
/linux/fs/xfs/ |
A D | xfs_file.c | 900 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 1010 if (!(mode & FALLOC_FL_KEEP_SIZE) && in xfs_file_fallocate()
|
/linux/tools/testing/selftests/vm/ |
A D | userfaultfd.c | 229 if (fallocate(huge_fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in hugetlb_release_pages() 1690 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in main()
|
/linux/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()
|
/linux/fs/hugetlbfs/ |
A D | inode.c | 642 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in hugetlbfs_fallocate() 755 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) in hugetlbfs_fallocate()
|
/linux/drivers/staging/android/ |
A D | ashmem.c | 504 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ashmem_shrink_scan()
|
/linux/drivers/target/ |
A D | target_core_file.c | 572 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
|
/linux/mm/ |
A D | madvise.c | 926 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
|
/linux/fs/btrfs/ |
A D | file.c | 3162 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) in btrfs_fallocate_update_isize() 3416 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in btrfs_fallocate() 3437 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { in btrfs_fallocate()
|
/linux/fs/ocfs2/ |
A D | file.c | 2107 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in ocfs2_fallocate() 2112 if (mode & FALLOC_FL_KEEP_SIZE) in ocfs2_fallocate()
|
/linux/Documentation/filesystems/ |
A D | vfat.rst | 228 when using fallocate with FALLOC_FL_KEEP_SIZE.
|
/linux/fs/f2fs/ |
A D | file.c | 1551 if (mode & FALLOC_FL_KEEP_SIZE) in f2fs_zero_range() 1721 if (mode & FALLOC_FL_KEEP_SIZE) in expand_inode_data() 1756 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in f2fs_fallocate()
|
/linux/fs/ksmbd/ |
A D | vfs.c | 1018 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
|
/linux/tools/testing/selftests/kvm/lib/ |
A D | kvm_util.c | 903 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in vm_userspace_mem_region_add()
|