Searched refs:fallocate (Results 1 - 25 of 40) sorted by last modified time

12

/linux-master/fs/nfsd/
H A Dnfs4xdr.c1921 struct nfsd4_fallocate *fallocate = &u->allocate; local
1924 status = nfsd4_decode_stateid4(argp, &fallocate->falloc_stateid);
1927 if (xdr_stream_decode_u64(argp->xdr, &fallocate->falloc_offset) < 0)
1929 if (xdr_stream_decode_u64(argp->xdr, &fallocate->falloc_length) < 0)
H A Dnfs4proc.c1977 struct nfsd4_fallocate *fallocate, int flags)
1983 &fallocate->falloc_stateid,
1989 fallocate->falloc_offset,
1990 fallocate->falloc_length,
1976 nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_fallocate *fallocate, int flags) argument
/linux-master/fs/ntfs3/
H A Dfile.c426 * Preallocate space for a file. This implements ntfs's fallocate file
465 ntfs_inode_warn(inode, "fallocate(0x%x) is not supported",
1236 .fallocate = ntfs_fallocate,
/linux-master/fs/smb/client/
H A Dsmb2ops.c3397 * we are supposed to fallocate, whichever comes first.
3486 * clamp len so we only fallocate up to the end of file.
3495 * At this point, we are trying to fallocate an internal
3497 * fallocate command we have two otions on how to emulate this.
3499 * which we only do if the fallocate is for virtually
3505 * We are only trying to fallocate a small region so
5375 .fallocate = smb3_fallocate,
5491 .fallocate = smb3_fallocate,
H A Dcifsglob.h559 long (*fallocate)(struct file *, struct cifs_tcon *, int, loff_t, member in struct:smb_version_operations
H A Dcifsfs.c345 if (server->ops->fallocate)
346 return server->ops->fallocate(file, tcon, mode, off, len);
1546 .fallocate = cifs_fallocate,
1566 .fallocate = cifs_fallocate,
1586 .fallocate = cifs_fallocate,
1604 .fallocate = cifs_fallocate,
1622 .fallocate = cifs_fallocate,
1640 .fallocate = cifs_fallocate,
/linux-master/fs/bcachefs/
H A Dfs.c1121 .fallocate = bch2_fallocate_dispatch,
H A Dbcachefs.h711 x(fallocate) \
/linux-master/mm/
H A Dshmem.c962 * If !unfalloc, truncate or punch hole; if unfalloc, undo failed fallocate.
1010 * When undoing a failed fallocate, we want none of the partial folio
1012 * folio when !uptodate indicates that it was added by this fallocate,
3170 * Good, the fallocate(2) manpage permits EINTR: we may have
4540 .fallocate = shmem_fallocate,
/linux-master/fs/fuse/
H A Dfile.c3320 .fallocate = fuse_file_fallocate,
/linux-master/include/linux/
H A Dfs.h2034 long (*fallocate)(struct file *file, int mode, loff_t offset, member in struct:file_operations
/linux-master/tools/testing/selftests/mm/
H A Duffd-common.c35 if (fallocate(mem_fd,
38 err("fallocate");
H A Dhugetlb-madvise.c201 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) {
202 perror("fallocate");
242 * The fallocate below certainly should free the pages associated
248 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
250 perror("fallocate");
260 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) {
261 perror("fallocate");
300 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) {
301 perror("fallocate");
/linux-master/fs/ceph/
H A Dfile.c3122 .fallocate = ceph_fallocate,
/linux-master/fs/f2fs/
H A Dfile.c1812 /* f2fs only support ->fallocate for regular file */
5040 .fallocate = f2fs_fallocate,
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dprivate_mem_conversions_test.c220 /* "Mapping" memory shared via fallocate() is done via PUNCH_HOLE. */
275 * Run the conversion test twice, with and without doing fallocate() on
432 r = fallocate(memfd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, memfd_size);
433 TEST_ASSERT(!r, __KVM_SYSCALL_ERROR("fallocate()", r));
435 r = fallocate(memfd, FALLOC_FL_KEEP_SIZE, 0, memfd_size);
436 TEST_ASSERT(!r, __KVM_SYSCALL_ERROR("fallocate()", r));
/linux-master/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c782 r = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, size);
783 TEST_ASSERT(!r, __KVM_SYSCALL_ERROR("fallocate()", r));
1280 ret = fallocate(region->region.guest_memfd, mode, fd_offset, len);
1281 TEST_ASSERT(!ret, "fallocate() failed to %s at %lx (len = %lu), fd = %d, mode = %x, offset = %lx",
/linux-master/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c62 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size);
63 TEST_ASSERT(!ret, "fallocate with aligned offset and size should succeed");
65 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
67 TEST_ASSERT(ret, "fallocate with unaligned offset should fail");
69 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size);
70 TEST_ASSERT(ret, "fallocate beginning at total_size should fail");
72 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size);
73 TEST_ASSERT(ret, "fallocate beginning after total_size should fail");
75 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
77 TEST_ASSERT(!ret, "fallocate(PUNCH_HOL
[all...]
/linux-master/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c415 ret = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
417 TEST_ASSERT(ret == 0, "fallocate failed");
925 * punched page (with fallocate(FALLOC_FL_PUNCH_HOLE)) from
/linux-master/tools/testing/selftests/memfd/
H A Dmemfd_test.c492 r = fallocate(fd,
497 printf("fallocate(PUNCH_HOLE) failed: %m\n");
557 r = fallocate(fd,
562 printf("fallocate(PUNCH_HOLE) didn't fail as expected\n");
614 r = fallocate(fd,
619 printf("fallocate(ALLOC) failed: %m\n");
636 r = fallocate(fd,
641 printf("fallocate(ALLOC) didn't fail as expected\n");
/linux-master/fs/xfs/
H A Dxfs_file.c1498 .fallocate = xfs_file_fallocate,
/linux-master/fs/ocfs2/
H A Dfile.c2792 .fallocate = ocfs2_fallocate,
2839 .fallocate = ocfs2_fallocate,
/linux-master/fs/
H A Dopen.c287 * We can only allow pure fallocate on append only files
296 * We cannot allow any fallocate operation on an active swapfile
326 if (!file->f_op->fallocate)
330 ret = file->f_op->fallocate(file, mode, offset, len);
335 * To keep the logic simple always create events if fallocate succeeds.
359 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len)
365 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, compat_arg_u64_dual(offset),
/linux-master/fs/nfs/
H A Dnfs4file.c465 .fallocate = nfs42_fallocate,
/linux-master/fs/hugetlbfs/
H A Dinode.c861 * fallocate(2) manpage permits EINTR; we may have been
888 * reserves for the file at the inode level. If we fallocate
1310 .fallocate = hugetlbfs_fallocate,

Completed in 401 milliseconds

12