/linux-4.1.27/include/uapi/linux/ |
H A D | falloc.h | 39 * 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 D | memfd_test.c | 314 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 D | compat.c | 68 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, COMPAT_SYSCALL_DEFINE6()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs4file.c | 185 .fallocate = nfs42_fallocate,
|
/linux-4.1.27/fs/cifs/ |
H A D | cifsfs.c | 216 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 D | smb2ops.c | 1048 * Must check if file sparse since fallocate -z (zero range) assumes smb3_zero_range() 1639 .fallocate = smb3_fallocate,
|
H A D | cifsglob.h | 409 long (*fallocate)(struct file *, struct cifs_tcon *, int, loff_t, member in struct:smb_version_operations
|
/linux-4.1.27/fs/ |
H A D | open.c | 261 * 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 D | ioctl.c | 425 * which predate the fallocate syscall.
|
/linux-4.1.27/fs/nfsd/ |
H A D | nfs4proc.c | 1022 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 D | nfs4xdr.c | 1663 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 D | target_core_file.c | 560 /* 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 D | shm.c | 461 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 D | systbl.h | 316 COMPAT_SYS(fallocate)
|
/linux-4.1.27/fs/gfs2/ |
H A D | file.c | 842 * 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 D | loop.c | 370 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 D | syscall_table.S | 403 ENTRY_OURS(fallocate) /* 305 */
|
/linux-4.1.27/mm/ |
H A D | madvise.c | 318 * Filesystem's fallocate may need to take i_mutex. We need to madvise_remove()
|
H A D | shmem.c | 392 * 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 D | extents.c | 2252 * 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 D | file.c | 649 .fallocate = ext4_fallocate,
|
H A D | inode.c | 353 * 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 D | ext4.h | 554 /* 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 D | journal.h | 267 * fallocate(2) we can write more than this, but we always
|
H A D | file.c | 2642 .fallocate = ocfs2_fallocate, 2687 .fallocate = ocfs2_fallocate,
|
/linux-4.1.27/fs/fuse/ |
H A D | fuse_i.h | 567 /** Is fallocate not implemented by fs? */
|
H A D | file.c | 2971 .fallocate = fuse_file_fallocate, 2988 .fallocate = fuse_file_fallocate,
|
/linux-4.1.27/fs/ceph/ |
H A D | file.c | 1342 .fallocate = ceph_fallocate,
|
/linux-4.1.27/fs/f2fs/ |
H A D | file.c | 1165 .fallocate = f2fs_fallocate,
|
H A D | data.c | 947 /* By fallocate(), there is no cached page, but with NEW_ADDR */ find_data_page()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_file.c | 1515 .fallocate = xfs_file_fallocate,
|
H A D | xfs_bmap_util.c | 1340 * semantics of fallocate and in addition converts data in the range to zeroes.
|
/linux-4.1.27/fs/btrfs/ |
H A D | ioctl.c | 3187 * 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 D | file.c | 2819 .fallocate = btrfs_fallocate,
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-trace.c | 950 { .name = "fallocate", .errmsg = true,
|
/linux-4.1.27/include/linux/ |
H A D | fs.h | 1616 long (*fallocate)(struct file *file, int mode, loff_t offset, member in struct:file_operations
|