Home
last modified time | relevance | path

Searched refs:FALLOC_FL_KEEP_SIZE (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/include/uapi/linux/
H A Dfalloc.h5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
/openbmc/linux/include/linux/
H A Dfalloc.h28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
/openbmc/linux/block/
H A Dfops.c739 (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 Dfuse.c694 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 Dio-cmd-file.c275 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 Dfile.c621 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 Dfile.c272 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 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/
H A Dioctl.c291 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 Dopen.c263 !(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 Dfile.c1342 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 Dnfs4file.c227 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
/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/fs/fuse/
H A Dfile.c3013 (!(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 Dfile.c460 ~(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 Dxfs_file.c934 (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 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()
944 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) in hugetlbfs_fallocate()
/openbmc/linux/fs/smb/server/
H A Dvfs.c990 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 Dtarget_core_file.c572 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/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/fs/btrfs/
H A Dfile.c2828 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 Dmadvise.c999 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()

12