Home
last modified time | relevance | path

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

12

/linux-6.1.9/include/uapi/linux/
Dfalloc.h5 #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ macro
/linux-6.1.9/block/
Dfops.c607 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
628 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate()
650 case FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate()
655 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE: in blkdev_fallocate()
660 case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE | FALLOC_FL_NO_HIDE_STALE: in blkdev_fallocate()
/linux-6.1.9/include/linux/
Dfalloc.h28 #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
/linux-6.1.9/drivers/nvme/target/
Dio-cmd-file.c281 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in nvmet_file_execute_discard()
343 int mode = FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE; in nvmet_file_write_zeroes_work()
/linux-6.1.9/fs/fat/
Dfile.c272 if (mode & ~FALLOC_FL_KEEP_SIZE) in fat_fallocate()
280 if (mode & FALLOC_FL_KEEP_SIZE) { in fat_fallocate()
/linux-6.1.9/arch/um/os-Linux/
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.1.9/tools/testing/selftests/vm/
Dhugetlb-madvise.c290 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in main()
Duserfaultfd.c1859 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, in main()
/linux-6.1.9/tools/testing/selftests/memfd/
Dmemfd_test.c398 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_assert_write()
463 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in mfd_fail_write()
/linux-6.1.9/fs/
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()
Dopen.c262 !(mode & FALLOC_FL_KEEP_SIZE)) in vfs_fallocate()
277 (mode & ~(FALLOC_FL_UNSHARE_RANGE | FALLOC_FL_KEEP_SIZE))) in vfs_fallocate()
286 if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode)) in vfs_fallocate()
/linux-6.1.9/fs/gfs2/
Dfile.c1331 if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) in __gfs2_fallocate()
1356 if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) in gfs2_fallocate()
1369 if (!(mode & FALLOC_FL_KEEP_SIZE) && in gfs2_fallocate()
/linux-6.1.9/fs/nfs/
Dnfs4file.c231 if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) in nfs42_fallocate()
/linux-6.1.9/fs/fuse/
Dfile.c2967 (!(mode & FALLOC_FL_KEEP_SIZE) || in fuse_file_fallocate()
2970 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in fuse_file_fallocate()
2993 if (!(mode & FALLOC_FL_KEEP_SIZE) && in fuse_file_fallocate()
3004 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
3021 if (!(mode & FALLOC_FL_KEEP_SIZE)) { in fuse_file_fallocate()
3032 if (!(mode & FALLOC_FL_KEEP_SIZE)) in fuse_file_fallocate()
/linux-6.1.9/fs/xfs/
Dxfs_file.c882 (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
993 if (!(mode & FALLOC_FL_KEEP_SIZE) && in xfs_file_fallocate()
/linux-6.1.9/fs/ntfs3/
Dfile.c560 ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in ntfs_fallocate()
732 if (mode & FALLOC_FL_KEEP_SIZE) { in ntfs_fallocate()
/linux-6.1.9/fs/cachefiles/
Dio.c565 ret = vfs_fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in __cachefiles_prepare_write()
/linux-6.1.9/fs/hugetlbfs/
Dinode.c784 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.1.9/fs/ksmbd/
Dvfs.c1012 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
1016 FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE, in ksmbd_vfs_zero_data()
/linux-6.1.9/drivers/target/
Dtarget_core_file.c575 int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; in fd_execute_unmap()
/linux-6.1.9/mm/
Dmadvise.c992 FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in madvise_remove()
/linux-6.1.9/fs/btrfs/
Dfile.c3115 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) in btrfs_fallocate_update_isize()
3368 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | in btrfs_fallocate()
3377 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { in btrfs_fallocate()
/linux-6.1.9/fs/ocfs2/
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.1.9/Documentation/filesystems/
Dvfat.rst228 when using fallocate with FALLOC_FL_KEEP_SIZE.
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c639 r = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, size); in kvm_memfd_alloc()

12