/openbmc/linux/include/uapi/linux/ |
H A D | falloc.h | 5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
|
/openbmc/linux/include/linux/ |
H A D | falloc.h | 28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
|
/openbmc/linux/block/ |
H A D | fops.c | 739 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 760 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate() 781 case FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 790 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate() 799 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE | FALLOC_FL_NO_HIDE_STALE: in blkdev_fallocate()
|
/openbmc/qemu/block/export/ |
H A D | fuse.c | 694 if (mode & FALLOC_FL_KEEP_SIZE) { in fuse_fallocate() 720 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_fallocate() 745 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + length > blk_len) { in fuse_fallocate()
|
/openbmc/linux/drivers/nvme/target/ |
H 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()
|
/openbmc/linux/arch/um/os-Linux/ |
H 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()
|
/openbmc/linux/fs/fat/ |
H A D | file.c | 272 if (mode & ~FALLOC_FL_KEEP_SIZE) in fat_fallocate() 280 if (mode & FALLOC_FL_KEEP_SIZE) { in fat_fallocate()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | hugetlb-madvise.c | 266 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
|
H A D | uffd-common.c | 35 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in uffd_mem_fd_create()
|
/openbmc/linux/fs/ |
H A D | ioctl.c | 291 return vfs_fallocate(filp, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, in ioctl_preallocate() 320 return vfs_fallocate(file, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in compat_ioctl_preallocate()
|
H 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()
|
/openbmc/linux/fs/gfs2/ |
H A D | file.c | 1342 if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) in __gfs2_fallocate() 1367 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate() 1380 if (!(mode & FALLOC_FL_KEEP_SIZE) && in gfs2_fallocate()
|
/openbmc/linux/fs/nfs/ |
H A D | nfs4file.c | 227 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
|
/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 497 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/fs/fuse/ |
H A D | file.c | 3013 (!(mode & FALLOC_FL_KEEP_SIZE) || in fuse_file_fallocate() 3016 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate() 3039 if (!(mode & FALLOC_FL_KEEP_SIZE) && in fuse_file_fallocate() 3050 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate() 3067 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_file_fallocate() 3078 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
|
/openbmc/linux/fs/ntfs3/ |
H A D | file.c | 460 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate() 638 if (mode & FALLOC_FL_KEEP_SIZE) { in ntfs_fallocate()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_file.c | 934 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \ 1045 if (!(mode & FALLOC_FL_KEEP_SIZE) && in xfs_file_fallocate()
|
/openbmc/linux/fs/cachefiles/ |
H A D | io.c | 577 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
|
/openbmc/linux/fs/hugetlbfs/ |
H A D | inode.c | 838 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in hugetlbfs_fallocate() 944 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) in hugetlbfs_fallocate()
|
/openbmc/linux/fs/smb/server/ |
H A D | vfs.c | 990 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data() 994 FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
|
/openbmc/linux/drivers/target/ |
H A D | target_core_file.c | 572 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
|
/openbmc/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | page_fault_test.c | 415 ret = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in punch_hole_in_backing_store()
|
/openbmc/linux/fs/btrfs/ |
H A D | file.c | 2828 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) in btrfs_fallocate_update_isize() 3081 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in btrfs_fallocate() 3090 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { in btrfs_fallocate()
|
/openbmc/linux/mm/ |
H A D | madvise.c | 999 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
|
/openbmc/qemu/block/ |
H A D | file-posix.c | 1937 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()
|