Home
last modified time | relevance | path

Searched refs:kiocb (Results 1 – 25 of 71) sorted by relevance

123

/fs/
Dread_write.c396 struct kiocb kiocb; in new_sync_read() local
400 init_sync_kiocb(&kiocb, filp); in new_sync_read()
401 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read()
404 ret = call_read_iter(filp, &kiocb, &iter); in new_sync_read()
407 *ppos = kiocb.ki_pos; in new_sync_read()
425 struct kiocb kiocb; in __kernel_read() local
440 init_sync_kiocb(&kiocb, file); in __kernel_read()
441 kiocb.ki_pos = pos ? *pos : 0; in __kernel_read()
443 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read()
446 *pos = kiocb.ki_pos; in __kernel_read()
[all …]
Daio.c200 struct kiocb rw;
565 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn()
1432 static void aio_complete_rw(struct kiocb *kiocb, long res, long res2) in aio_complete_rw() argument
1434 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw()
1439 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1440 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw()
1448 file_end_write(kiocb->ki_filp); in aio_complete_rw()
1456 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw()
1507 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done()
1527 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read()
[all …]
Dseq_file.c154 struct kiocb kiocb; in seq_read() local
158 init_sync_kiocb(&kiocb, file); in seq_read()
161 kiocb.ki_pos = *ppos; in seq_read()
162 ret = seq_read_iter(&kiocb, &iter); in seq_read()
163 *ppos = kiocb.ki_pos; in seq_read()
171 ssize_t seq_read_iter(struct kiocb *iocb, struct iov_iter *iter) in seq_read_iter()
Dsplice.c303 struct kiocb kiocb; in generic_file_splice_read() local
309 init_sync_kiocb(&kiocb, in); in generic_file_splice_read()
310 kiocb.ki_pos = *ppos; in generic_file_splice_read()
311 ret = call_read_iter(in, &kiocb, &to); in generic_file_splice_read()
313 *ppos = kiocb.ki_pos; in generic_file_splice_read()
/fs/cifs/
Dcifsfs.h97 extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to);
98 extern ssize_t cifs_direct_readv(struct kiocb *iocb, struct iov_iter *to);
99 extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to);
100 extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from);
101 extern ssize_t cifs_direct_writev(struct kiocb *iocb, struct iov_iter *from);
102 extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from);
/fs/fuse/
Dpassthrough.c13 struct kiocb iocb;
14 struct kiocb *iocb_fuse;
50 struct kiocb *iocb = &aio_req->iocb; in fuse_aio_cleanup_handler()
51 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_cleanup_handler()
64 static void fuse_aio_rw_complete(struct kiocb *iocb, long res, long res2) in fuse_aio_rw_complete()
68 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_rw_complete()
74 ssize_t fuse_passthrough_read_iter(struct kiocb *iocb_fuse, in fuse_passthrough_read_iter()
115 ssize_t fuse_passthrough_write_iter(struct kiocb *iocb_fuse, in fuse_passthrough_write_iter()
Dcuse.c94 static ssize_t cuse_read_iter(struct kiocb *kiocb, struct iov_iter *to) in cuse_read_iter() argument
96 struct fuse_io_priv io = FUSE_IO_PRIV_SYNC(kiocb); in cuse_read_iter()
102 static ssize_t cuse_write_iter(struct kiocb *kiocb, struct iov_iter *from) in cuse_write_iter() argument
104 struct fuse_io_priv io = FUSE_IO_PRIV_SYNC(kiocb); in cuse_write_iter()
Dfuse_i.h389 struct kiocb *iocb;
1375 ssize_t fuse_dax_read_iter(struct kiocb *iocb, struct iov_iter *to);
1376 ssize_t fuse_dax_write_iter(struct kiocb *iocb, struct iov_iter *from);
1408 ssize_t fuse_passthrough_read_iter(struct kiocb *iocb, struct iov_iter *to);
1409 ssize_t fuse_passthrough_write_iter(struct kiocb *iocb, struct iov_iter *from);
1629 struct kiocb *iocb, struct iov_iter *to);
1631 struct kiocb *iocb, struct iov_iter *to);
1633 struct kiocb *iocb, struct iov_iter *to);
1646 struct kiocb *iocb, struct iov_iter *from);
1648 struct kiocb *iocb, struct iov_iter *from);
[all …]
Dbacking.c19 struct kiocb iocb;
21 struct kiocb *iocb_orig;
763 struct kiocb *iocb = &aio_req->iocb; in fuse_bpf_aio_cleanup_handler()
764 struct kiocb *iocb_orig = aio_req->iocb_orig; in fuse_bpf_aio_cleanup_handler()
776 static void fuse_bpf_aio_rw_complete(struct kiocb *iocb, long res, long res2) in fuse_bpf_aio_rw_complete()
780 struct kiocb *iocb_orig = aio_req->iocb_orig; in fuse_bpf_aio_rw_complete()
789 struct kiocb *iocb, struct iov_iter *to) in fuse_file_read_iter_initialize()
828 struct kiocb *iocb, struct iov_iter *to) in fuse_file_read_iter_backing()
876 struct kiocb *iocb, struct iov_iter *to) in fuse_file_read_iter_finalize()
885 struct kiocb *iocb, struct iov_iter *from) in fuse_file_write_iter_initialize()
[all …]
/fs/ext4/
Dfile.c39 static bool ext4_dio_supported(struct kiocb *iocb, struct iov_iter *iter) in ext4_dio_supported()
59 static ssize_t ext4_dio_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dio_read_iter()
92 static ssize_t ext4_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dax_read_iter()
120 static ssize_t ext4_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_file_read_iter()
218 static ssize_t ext4_generic_write_checks(struct kiocb *iocb, in ext4_generic_write_checks()
246 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks()
260 static ssize_t ext4_buffered_write_iter(struct kiocb *iocb, in ext4_buffered_write_iter()
376 static int ext4_dio_write_end_io(struct kiocb *iocb, ssize_t size, in ext4_dio_write_end_io()
427 static ssize_t ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, in ext4_dio_write_checks()
476 static ssize_t ext4_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dio_write_iter()
[all …]
/fs/iomap/
Ddirect-io.c28 struct kiocb *iocb;
54 int iomap_dio_iopoll(struct kiocb *kiocb, bool spin) in iomap_dio_iopoll() argument
56 struct request_queue *q = READ_ONCE(kiocb->private); in iomap_dio_iopoll()
60 return blk_poll(q, READ_ONCE(kiocb->ki_cookie), spin); in iomap_dio_iopoll()
82 struct kiocb *iocb = dio->iocb; in iomap_dio_complete()
141 struct kiocb *iocb = dio->iocb; in iomap_dio_complete_work()
475 __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in __iomap_dio_rw()
672 iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in iomap_dio_rw()
/fs/ext2/
Dfile.c33 static ssize_t ext2_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_dax_read_iter()
49 static ssize_t ext2_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dax_write_iter()
164 static ssize_t ext2_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_file_read_iter()
173 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter()
/fs/xfs/
Dxfs_file.c227 struct kiocb *iocb, in xfs_ilock_iocb()
244 struct kiocb *iocb, in xfs_file_dio_read()
268 struct kiocb *iocb, in xfs_file_dax_read()
291 struct kiocb *iocb, in xfs_file_buffered_read()
310 struct kiocb *iocb, in xfs_file_read_iter()
343 struct kiocb *iocb, in xfs_file_write_checks()
451 struct kiocb *iocb, in xfs_dio_write_end_io()
546 struct kiocb *iocb, in xfs_file_dio_write_aligned()
597 struct kiocb *iocb, in xfs_file_dio_write_unaligned()
669 struct kiocb *iocb, in xfs_file_dio_write()
[all …]
/fs/overlayfs/
Dfile.c21 struct kiocb iocb;
23 struct kiocb *orig_iocb;
252 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()
253 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()
269 static void ovl_aio_rw_complete(struct kiocb *iocb, long res, long res2) in ovl_aio_rw_complete()
273 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()
279 static ssize_t ovl_read_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_read_iter()
331 static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_write_iter()
/fs/configfs/
Dfile.c80 static ssize_t configfs_read_iter(struct kiocb *iocb, struct iov_iter *to) in configfs_read_iter()
106 static ssize_t configfs_bin_read_iter(struct kiocb *iocb, struct iov_iter *to) in configfs_bin_read_iter()
220 static ssize_t configfs_write_iter(struct kiocb *iocb, struct iov_iter *from) in configfs_write_iter()
236 static ssize_t configfs_bin_write_iter(struct kiocb *iocb, in configfs_bin_write_iter()
/fs/cachefiles/
Dio.c17 struct kiocb iocb;
40 static void cachefiles_read_complete(struct kiocb *iocb, long ret, long ret2) in cachefiles_read_complete()
162 static void cachefiles_write_complete(struct kiocb *iocb, long ret, long ret2) in cachefiles_write_complete()
/fs/9p/
Dvfs_file.c368 v9fs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_file_read_iter()
394 v9fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_file_write_iter()
566 v9fs_mmap_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_mmap_file_read_iter()
579 v9fs_mmap_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_mmap_file_write_iter()
/fs/udf/
Dfile.c107 static ssize_t udf_adinicb_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in udf_adinicb_direct_IO()
136 static ssize_t udf_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in udf_file_write_iter()
/fs/zonefs/
Dsuper.c709 static int zonefs_file_write_dio_end_io(struct kiocb *iocb, ssize_t size, in zonefs_file_write_dio_end_io()
743 static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_dio_append()
858 static ssize_t zonefs_write_checks(struct kiocb *iocb, struct iov_iter *from) in zonefs_write_checks()
901 static ssize_t zonefs_file_dio_write(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_dio_write()
969 static ssize_t zonefs_file_buffered_write(struct kiocb *iocb, in zonefs_file_buffered_write()
1008 static ssize_t zonefs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_write_iter()
1031 static int zonefs_file_read_dio_end_io(struct kiocb *iocb, ssize_t size, in zonefs_file_read_dio_end_io()
1046 static ssize_t zonefs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in zonefs_file_read_iter()
/fs/coda/
Dfile.c38 coda_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in coda_file_read_iter()
63 coda_file_write_iter(struct kiocb *iocb, struct iov_iter *to) in coda_file_write_iter()
/fs/ocfs2/
Daops.h53 static inline void ocfs2_iocb_set_rw_locked(struct kiocb *iocb, int level) in ocfs2_iocb_set_rw_locked()
/fs/nfs/
Ddirect.c73 struct kiocb * iocb; /* controlling i/o request */
164 ssize_t nfs_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in nfs_direct_IO()
443 ssize_t nfs_file_direct_read(struct kiocb *iocb, struct iov_iter *iter, in nfs_file_direct_read()
930 ssize_t nfs_file_direct_write(struct kiocb *iocb, struct iov_iter *iter, in nfs_file_direct_write()
/fs/orangefs/
Dfile.c323 static ssize_t orangefs_file_read_iter(struct kiocb *iocb, in orangefs_file_read_iter()
340 static ssize_t orangefs_file_write_iter(struct kiocb *iocb, in orangefs_file_write_iter()
/fs/gfs2/
Dfile.c810 static ssize_t gfs2_file_direct_read(struct kiocb *iocb, struct iov_iter *to, in gfs2_file_direct_read()
875 static ssize_t gfs2_file_direct_write(struct kiocb *iocb, struct iov_iter *from, in gfs2_file_direct_write()
945 static ssize_t gfs2_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in gfs2_file_read_iter()
1013 static ssize_t gfs2_file_buffered_write(struct kiocb *iocb, in gfs2_file_buffered_write()
1105 static ssize_t gfs2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in gfs2_file_write_iter()
/fs/erofs/
Ddata.c304 static int erofs_prepare_dio(struct kiocb *iocb, struct iov_iter *to) in erofs_prepare_dio()
322 static ssize_t erofs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in erofs_file_read_iter()

123