Searched refs:fallocate (Results 1 - 36 of 36) sorted by relevance

/linux-4.1.27/include/uapi/linux/
H A Dfalloc.h39 * with fallocate. Flag FALLOC_FL_KEEP_SIZE should cause the inode
57 * fallocate(2) with mode 0 for such type of operations.
/linux-4.1.27/tools/testing/selftests/memfd/
H A Dmemfd_test.c314 r = fallocate(fd, mfd_assert_write()
319 printf("fallocate(PUNCH_HOLE) failed: %m\n"); mfd_assert_write()
378 r = fallocate(fd, mfd_fail_write()
383 printf("fallocate(PUNCH_HOLE) didn't fail as expected\n"); mfd_fail_write()
435 r = fallocate(fd, mfd_assert_grow()
440 printf("fallocate(ALLOC) failed: %m\n"); mfd_assert_grow()
457 r = fallocate(fd, mfd_fail_grow()
462 printf("fallocate(ALLOC) didn't fail as expected\n"); mfd_fail_grow()
/linux-4.1.27/arch/tile/kernel/
H A Dcompat.c68 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, COMPAT_SYSCALL_DEFINE6()
/linux-4.1.27/fs/nfs/
H A Dnfs4file.c185 .fallocate = nfs42_fallocate,
/linux-4.1.27/fs/cifs/
H A Dcifsfs.c216 if (server->ops->fallocate) cifs_fallocate()
217 return server->ops->fallocate(file, tcon, mode, off, len); cifs_fallocate()
925 .fallocate = cifs_fallocate,
943 .fallocate = cifs_fallocate,
962 .fallocate = cifs_fallocate,
979 .fallocate = cifs_fallocate,
996 .fallocate = cifs_fallocate,
1014 .fallocate = cifs_fallocate,
H A Dsmb2ops.c1048 * Must check if file sparse since fallocate -z (zero range) assumes smb3_zero_range()
1639 .fallocate = smb3_fallocate,
H A Dcifsglob.h409 long (*fallocate)(struct file *, struct cifs_tcon *, int, loff_t, member in struct:smb_version_operations
/linux-4.1.27/fs/
H A Dopen.c261 * We can only allow pure fallocate on append only files vfs_fallocate()
270 * We cannot allow any fallocate operation on an active swapfile vfs_fallocate()
297 if (!file->f_op->fallocate) vfs_fallocate()
301 ret = file->f_op->fallocate(file, mode, offset, len); vfs_fallocate()
306 * To keep the logic simple always create events if fallocate succeeds. vfs_fallocate()
318 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) SYSCALL_DEFINE4()
H A Dioctl.c425 * which predate the fallocate syscall.
/linux-4.1.27/fs/nfsd/
H A Dnfs4proc.c1022 struct nfsd4_fallocate *fallocate, int flags) nfsd4_fallocate()
1028 &fallocate->falloc_stateid, nfsd4_fallocate()
1038 fallocate->falloc_offset, nfsd4_fallocate()
1039 fallocate->falloc_length, nfsd4_fallocate()
1047 struct nfsd4_fallocate *fallocate) nfsd4_allocate()
1049 return nfsd4_fallocate(rqstp, cstate, fallocate, 0); nfsd4_allocate()
1054 struct nfsd4_fallocate *fallocate) nfsd4_deallocate()
1056 return nfsd4_fallocate(rqstp, cstate, fallocate, nfsd4_deallocate()
1021 nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_fallocate *fallocate, int flags) nfsd4_fallocate() argument
1046 nfsd4_allocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_fallocate *fallocate) nfsd4_allocate() argument
1053 nfsd4_deallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_fallocate *fallocate) nfsd4_deallocate() argument
H A Dnfs4xdr.c1663 struct nfsd4_fallocate *fallocate) nfsd4_decode_fallocate()
1667 status = nfsd4_decode_stateid(argp, &fallocate->falloc_stateid); nfsd4_decode_fallocate()
1672 p = xdr_decode_hyper(p, &fallocate->falloc_offset); nfsd4_decode_fallocate()
1673 xdr_decode_hyper(p, &fallocate->falloc_length); nfsd4_decode_fallocate()
1662 nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp, struct nfsd4_fallocate *fallocate) nfsd4_decode_fallocate() argument
/linux-4.1.27/drivers/target/
H A Dtarget_core_file.c560 /* The backend is normal file, use fallocate */ fd_do_unmap()
566 if (!file->f_op->fallocate) fd_do_unmap()
569 ret = file->f_op->fallocate(file, mode, pos, len); fd_do_unmap()
571 pr_warn("FILEIO: fallocate() failed: %d\n", ret); fd_do_unmap()
/linux-4.1.27/ipc/
H A Dshm.c461 if (!sfd->file->f_op->fallocate) shm_fallocate()
463 return sfd->file->f_op->fallocate(file, mode, offset, len); shm_fallocate()
483 .fallocate = shm_fallocate,
492 .fallocate = shm_fallocate,
/linux-4.1.27/arch/powerpc/include/asm/
H A Dsystbl.h316 COMPAT_SYS(fallocate)
/linux-4.1.27/fs/gfs2/
H A Dfile.c842 * fallocate without exceeding quota or going over the __gfs2_fallocate()
1120 .fallocate = gfs2_fallocate,
1148 .fallocate = gfs2_fallocate,
/linux-4.1.27/drivers/block/
H A Dloop.c370 if ((!file->f_op->fallocate) || lo->lo_encrypt_key_size) { lo_discard()
375 ret = file->f_op->fallocate(file, mode, pos, blk_rq_bytes(rq)); lo_discard()
652 if ((!file->f_op->fallocate) || loop_config_discard()
/linux-4.1.27/arch/parisc/kernel/
H A Dsyscall_table.S403 ENTRY_OURS(fallocate) /* 305 */
/linux-4.1.27/mm/
H A Dmadvise.c318 * Filesystem's fallocate may need to take i_mutex. We need to madvise_remove()
H A Dshmem.c392 * If !unfalloc, truncate or punch hole; if unfalloc, undo failed fallocate.
2128 * Good, the fallocate(2) manpage permits EINTR: we may have shmem_fallocate()
3126 .fallocate = shmem_fallocate,
/linux-4.1.27/fs/ext4/
H A Dextents.c2252 * is allocated by fallocate status tree will track both of ext4_fill_fiemap_extents()
3436 * steady state for workloads doing fallocate(FALLOC_FL_KEEP_SIZE) ext4_ext_convert_to_initialized()
3860 * allocated using fallocate() before the delayed allocation could be resolved.
4067 * repeat fallocate creation request ext4_ext_handle_unwritten_extents()
4115 * If we have done fallocate with the offset that is already ext4_ext_handle_unwritten_extents()
4118 * But fallocate would have already updated quota and block ext4_ext_handle_unwritten_extents()
4759 * Round up offset. This is not fallocate, we neet to zero out ext4_zero_range()
4887 * preallocate space for a file. This implements ext4's fallocate file
4891 * expected for file systems which do not support fallocate() system call).
5391 * This implements the fallocate's collapse range functionality for ext4
H A Dfile.c649 .fallocate = ext4_fallocate,
H A Dinode.c353 * We did fallocate with an offset that is already delayed ext4_da_update_reserve_space()
608 * support fallocate for non extent files. So we can update ext4_map_blocks()
1547 * Delayed extent could be allocated by fallocate. ext4_da_map_blocks()
3088 * For holes, we fallocate those blocks, mark them as unwritten
3138 * We could direct write to holes and fallocate. ext4_ext_direct_IO()
4985 * This is called from DIO, fallocate or whoever calling
4989 * and fallocate do no need to journal data buffers.
H A Dext4.h554 /* Don't normalize allocation size (used for fallocate) */
556 /* Request will not result in inode size update (user for fallocate) */
/linux-4.1.27/fs/ocfs2/
H A Djournal.h267 * fallocate(2) we can write more than this, but we always
H A Dfile.c2642 .fallocate = ocfs2_fallocate,
2687 .fallocate = ocfs2_fallocate,
/linux-4.1.27/fs/fuse/
H A Dfuse_i.h567 /** Is fallocate not implemented by fs? */
H A Dfile.c2971 .fallocate = fuse_file_fallocate,
2988 .fallocate = fuse_file_fallocate,
/linux-4.1.27/fs/ceph/
H A Dfile.c1342 .fallocate = ceph_fallocate,
/linux-4.1.27/fs/f2fs/
H A Dfile.c1165 .fallocate = f2fs_fallocate,
H A Ddata.c947 /* By fallocate(), there is no cached page, but with NEW_ADDR */ find_data_page()
/linux-4.1.27/fs/xfs/
H A Dxfs_file.c1515 .fallocate = xfs_file_fallocate,
H A Dxfs_bmap_util.c1340 * semantics of fallocate and in addition converts data in the range to zeroes.
/linux-4.1.27/fs/btrfs/
H A Dioctl.c3187 * extents beyond it, due to an fallocate with FALLOC_FL_KEEP_SIZE (and we are
3188 * protected against such concurrent fallocate calls by the i_mutex).
3244 * extents following (can happen do to an fallocate call with clone_copy_inline_extent()
H A Dfile.c2819 .fallocate = btrfs_fallocate,
/linux-4.1.27/tools/perf/
H A Dbuiltin-trace.c950 { .name = "fallocate", .errmsg = true,
/linux-4.1.27/include/linux/
H A Dfs.h1616 long (*fallocate)(struct file *file, int mode, loff_t offset, member in struct:file_operations

Completed in 647 milliseconds