Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/include/uapi/linux/
A Dfalloc.h5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
/linux-6.3-rc2/block/
A Dfops.c615 (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 Dfalloc.h28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
/linux-6.3-rc2/drivers/nvme/target/
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()
/linux-6.3-rc2/fs/fat/
A Dfile.c272 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 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()
/linux-6.3-rc2/tools/testing/selftests/mm/
A Dhugetlb-madvise.c285 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
A Duserfaultfd.c1839 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in main()
/linux-6.3-rc2/fs/
A Dioctl.c290 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 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()
/linux-6.3-rc2/fs/gfs2/
A Dfile.c1332 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 Dmemfd_test.c466 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 Dnfs4file.c227 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
/linux-6.3-rc2/fs/ntfs3/
A Dfile.c465 ~(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 Dxfs_file.c882 (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 Dfile.c3043 (!(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 Dio.c587 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
/linux-6.3-rc2/fs/hugetlbfs/
A Dinode.c782 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 Dvfs.c1013 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 Dtarget_core_file.c568 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/linux-6.3-rc2/tools/testing/selftests/kvm/aarch64/
A Dpage_fault_test.c416 ret = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in punch_hole_in_backing_store()
/linux-6.3-rc2/fs/btrfs/
A Dfile.c2805 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 Dmadvise.c1002 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
/linux-6.3-rc2/fs/ocfs2/
A Dfile.c2104 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 Dvfat.rst228 when using fallocate with FALLOC_FL_KEEP_SIZE.

Completed in 75 milliseconds

12