/linux-master/fs/nfsd/ |
H A D | nfs4xdr.c | 1921 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 D | nfs4proc.c | 1977 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 D | file.c | 426 * 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 D | smb2ops.c | 3397 * 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 D | cifsglob.h | 559 long (*fallocate)(struct file *, struct cifs_tcon *, int, loff_t, member in struct:smb_version_operations
|
H A D | cifsfs.c | 345 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 D | fs.c | 1121 .fallocate = bch2_fallocate_dispatch,
|
H A D | bcachefs.h | 711 x(fallocate) \
|
/linux-master/mm/ |
H A D | shmem.c | 962 * 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 D | file.c | 3320 .fallocate = fuse_file_fallocate,
|
/linux-master/include/linux/ |
H A D | fs.h | 2034 long (*fallocate)(struct file *file, int mode, loff_t offset, member in struct:file_operations
|
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 35 if (fallocate(mem_fd, 38 err("fallocate");
|
H A D | hugetlb-madvise.c | 201 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 D | file.c | 3122 .fallocate = ceph_fallocate,
|
/linux-master/fs/f2fs/ |
H A D | file.c | 1812 /* f2fs only support ->fallocate for regular file */ 5040 .fallocate = f2fs_fallocate,
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | private_mem_conversions_test.c | 220 /* "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 D | kvm_util.c | 782 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 D | guest_memfd_test.c | 62 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 D | page_fault_test.c | 415 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 D | memfd_test.c | 492 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 D | xfs_file.c | 1498 .fallocate = xfs_file_fallocate,
|
/linux-master/fs/ocfs2/ |
H A D | file.c | 2792 .fallocate = ocfs2_fallocate, 2839 .fallocate = ocfs2_fallocate,
|
/linux-master/fs/ |
H A D | open.c | 287 * 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 D | nfs4file.c | 465 .fallocate = nfs42_fallocate,
|
/linux-master/fs/hugetlbfs/ |
H A D | inode.c | 861 * 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,
|