Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c63 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, in test_mmap_supported()
143 kvm_fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, page_size); in test_numa_allocation()
158 kvm_fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, total_size); in test_numa_allocation()
285 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); in test_fallocate()
288 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
292 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); in test_fallocate()
295 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size); in test_fallocate()
298 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
302 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, in test_fallocate()
306 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOL in test_fallocate()
[all...]
/linux/include/uapi/linux/
H A Dfalloc.h6 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
/linux/block/
H A Dfops.c842 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
871 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate()
889 case FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate()
892 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate()
/linux/tools/testing/selftests/kvm/x86/
H A Dprivate_mem_conversions_test.c431 kvm_fallocate(memfd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, memfd_size); in test_mem_conversions()
432 kvm_fallocate(memfd, FALLOC_FL_KEEP_SIZE, 0, memfd_size); in test_mem_conversions()
/linux/drivers/nvme/target/
H A Dio-cmd-file.c274 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard()
336 int mode = FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE; in nvmet_file_write_zeroes_work()
/linux/fs/ntfs/
H A Dfile.c938 mode & FALLOC_FL_KEEP_SIZE ? true : false); in ntfs_allocate_range()
940 if (!(mode & FALLOC_FL_KEEP_SIZE) && new_size != old_size) in ntfs_allocate_range()
1124 (FALLOC_FL_ALLOCATE_RANGE | FALLOC_FL_KEEP_SIZE | \
1176 case FALLOC_FL_KEEP_SIZE: in ntfs_fallocate()
/linux/arch/um/os-Linux/
H A Dfile.c618 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_punch()
627 int n = fallocate(fd, FALLOC_FL_ZERO_RANGE|FALLOC_FL_KEEP_SIZE, offset, len); in os_falloc_zeroes()
/linux/fs/
H A Dioctl.c289 return vfs_fallocate(filp, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, in ioctl_preallocate()
318 return vfs_fallocate(file, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in compat_ioctl_preallocate()
/linux/fs/gfs2/
H A Dfile.c1272 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in __gfs2_fallocate()
1360 if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) in __gfs2_fallocate()
1385 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate()
1398 if (!(mode & FALLOC_FL_KEEP_SIZE) && in gfs2_fallocate()
/linux/tools/testing/selftests/mm/
H A Dhugetlb-madvise.c207 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
H A Duffd-common.c46 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in uffd_mem_fd_create()
/linux/virt/kvm/
H A Dguest_memfd.c271 if (!(mode & FALLOC_FL_KEEP_SIZE)) in kvm_gmem_allocate()
274 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in kvm_gmem_allocate()
/linux/fs/nfs/
H A Dnfs4file.c231 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in nfs42_fallocate()
/linux/fs/fuse/
H A Dfile.c2848 (!(mode & FALLOC_FL_KEEP_SIZE) || in fuse_file_fallocate()
2851 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate()
2874 if (!(mode & FALLOC_FL_KEEP_SIZE) && in fuse_file_fallocate()
2885 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
2902 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_file_fallocate()
2918 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c529 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_assert_write()
594 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_fail_write()
/linux/fs/ntfs3/
H A Dfile.c497 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate()
678 if (mode & FALLOC_FL_KEEP_SIZE) { in ntfs_fallocate()
/linux/fs/xfs/
H A Dxfs_file.c1225 if ((mode & FALLOC_FL_KEEP_SIZE) || offset + len <= i_size_read(inode)) in xfs_falloc_newsize()
1540 (FALLOC_FL_ALLOCATE_RANGE | FALLOC_FL_KEEP_SIZE | \
/linux/drivers/target/
H A Dtarget_core_file.c568 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c887 kvm_fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, size); in vm_userspace_mem_region_gpa_insert()
1301 const int mode = FALLOC_FL_KEEP_SIZE | (punch_hole ? FALLOC_FL_PUNCH_HOLE : 0); in vm_guest_mem_fallocate()
/linux/tools/testing/selftests/kvm/arm64/
H A Dpage_fault_test.c414 ret = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in punch_hole_in_backing_store()
/linux/fs/btrfs/
H A Dfile.c2834 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) in btrfs_fallocate_update_isize()
3099 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in btrfs_fallocate()
3108 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { in btrfs_fallocate()
/linux/fs/smb/server/
H A Dvfs.c974 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
1107 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_trim_data()
/linux/Documentation/filesystems/
H A Dvfat.rst228 when using fallocate with FALLOC_FL_KEEP_SIZE.
/linux/mm/
H A Dmadvise.c1048 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
/linux/fs/ext4/
H A Dextents.c4798 if (!(mode & FALLOC_FL_KEEP_SIZE) && in ext4_zero_range()
4918 if (!(mode & FALLOC_FL_KEEP_SIZE) && in ext4_do_fallocate()
4973 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ext4_fallocate()

12