Home
last modified time | relevance | path

Searched refs:ki_flags (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.6.21/fs/ext2/
Dtrace.h20 __field(int, ki_flags)
30 __entry->ki_flags = iocb->ki_flags;
40 __print_flags(__entry->ki_flags, "|", TRACE_IOCB_STRINGS),
64 __field(int, ki_flags)
74 __entry->ki_flags = iocb->ki_flags;
84 __print_flags(__entry->ki_flags, "|", TRACE_IOCB_STRINGS),
Dfile.c253 iocb->ki_flags &= ~IOCB_DIRECT; in ext2_dio_write_iter()
287 if (iocb->ki_flags & IOCB_DIRECT) in ext2_file_read_iter()
299 if (iocb->ki_flags & IOCB_DIRECT) in ext2_file_write_iter()
/linux-6.6.21/io_uring/
Drw.c241 if (rw->kiocb.ki_flags & IOCB_WRITE) { in io_req_io_end()
287 if ((kiocb->ki_flags & IOCB_DIO_CALLER_COMP) && kiocb->dio_complete) { in io_req_rw_complete()
308 if (!kiocb->dio_complete || !(kiocb->ki_flags & IOCB_DIO_CALLER_COMP)) { in io_complete_rw()
322 if (kiocb->ki_flags & IOCB_WRITE) in io_complete_rw_iopoll()
448 if (kiocb->ki_flags & IOCB_HIPRI) in loop_rw_iter()
450 if ((kiocb->ki_flags & IOCB_NOWAIT) && in loop_rw_iter()
601 rw->kiocb.ki_flags &= ~IOCB_WAITQ; in io_async_buf_func()
631 if (kiocb->ki_flags & (IOCB_DIRECT | IOCB_HIPRI)) in io_rw_should_retry()
645 kiocb->ki_flags |= IOCB_WAITQ; in io_rw_should_retry()
646 kiocb->ki_flags &= ~IOCB_NOWAIT; in io_rw_should_retry()
[all …]
/linux-6.6.21/fs/iomap/
Dtrace.h203 __field(int, ki_flags)
214 __entry->ki_flags = iocb->ki_flags;
225 __print_flags(__entry->ki_flags, "|", TRACE_IOCB_STRINGS),
238 __field(int, ki_flags)
248 __entry->ki_flags = iocb->ki_flags;
258 __print_flags(__entry->ki_flags, "|", TRACE_IOCB_STRINGS),
Ddirect-io.c72 if ((iocb->ki_flags & IOCB_HIPRI) && !is_sync_kiocb(iocb)) { in iomap_dio_submit_bio()
354 dio->iocb->ki_flags &= ~IOCB_HIPRI; in iomap_dio_bio_iter()
416 dio->iocb->ki_flags &= ~IOCB_HIPRI; in iomap_dio_bio_iter()
579 if (iocb->ki_flags & IOCB_NOWAIT) in __iomap_dio_rw()
605 if (iocb->ki_flags & IOCB_DIO_CALLER_COMP) in __iomap_dio_rw()
629 if (!(iocb->ki_flags & IOCB_SYNC)) in __iomap_dio_rw()
664 iocb->ki_flags &= ~IOCB_HIPRI; in __iomap_dio_rw()
678 if (!(iocb->ki_flags & IOCB_NOWAIT)) in __iomap_dio_rw()
/linux-6.6.21/drivers/nvme/target/
Dio-cmd-file.c77 unsigned long nr_segs, size_t count, int ki_flags) in nvmet_file_submit_bvec() argument
86 ki_flags |= IOCB_DSYNC; in nvmet_file_submit_bvec()
98 iocb->ki_flags = ki_flags | iocb->ki_filp->f_iocb_flags; in nvmet_file_submit_bvec()
120 static bool nvmet_file_execute_io(struct nvmet_req *req, int ki_flags) in nvmet_file_execute_io() argument
177 if (!(ki_flags & IOCB_NOWAIT)) in nvmet_file_execute_io()
180 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags); in nvmet_file_execute_io()
186 if (WARN_ON_ONCE(!(ki_flags & IOCB_NOWAIT))) in nvmet_file_execute_io()
195 if ((ki_flags & IOCB_NOWAIT)) in nvmet_file_execute_io()
/linux-6.6.21/fs/ext4/
Dfile.c74 if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_dio_read_iter()
90 iocb->ki_flags &= ~IOCB_DIRECT; in ext4_dio_read_iter()
107 if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_dax_read_iter()
144 if (iocb->ki_flags & IOCB_DIRECT) in ext4_file_read_iter()
291 if (iocb->ki_flags & IOCB_NOWAIT) in ext4_buffered_write_iter()
458 if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_dio_write_checks()
476 if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_dio_write_checks()
518 if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_dio_write_iter()
638 if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_dax_write_iter()
695 if (iocb->ki_flags & IOCB_DIRECT) in ext4_file_write_iter()
/linux-6.6.21/fs/zonefs/
Dfile.c426 if ((iocb->ki_flags & IOCB_NOWAIT) && !(iocb->ki_flags & IOCB_DIRECT)) in zonefs_write_checks()
429 if (iocb->ki_flags & IOCB_APPEND) { in zonefs_write_checks()
470 (iocb->ki_flags & IOCB_NOWAIT)) in zonefs_file_dio_write()
473 if (iocb->ki_flags & IOCB_NOWAIT) { in zonefs_file_dio_write()
554 if (iocb->ki_flags & IOCB_NOWAIT) { in zonefs_file_buffered_write()
592 if (iocb->ki_flags & IOCB_DIRECT) { in zonefs_file_write_iter()
633 if (iocb->ki_flags & IOCB_NOWAIT) { in zonefs_file_read_iter()
651 if (iocb->ki_flags & IOCB_DIRECT) { in zonefs_file_read_iter()
/linux-6.6.21/block/
Dfops.c86 if (iocb->ki_flags & IOCB_NOWAIT) in __blkdev_direct_IO_simple()
177 if (iocb->ki_flags & IOCB_ALLOC_CACHE) in __blkdev_direct_IO()
216 if (iocb->ki_flags & IOCB_NOWAIT) { in __blkdev_direct_IO()
316 if (iocb->ki_flags & IOCB_ALLOC_CACHE) in __blkdev_direct_IO_async()
353 if (iocb->ki_flags & IOCB_NOWAIT) in __blkdev_direct_IO_async()
356 if (iocb->ki_flags & IOCB_HIPRI) { in __blkdev_direct_IO_async()
665 if ((iocb->ki_flags & (IOCB_NOWAIT | IOCB_DIRECT)) == IOCB_NOWAIT) in blkdev_write_iter()
678 if (iocb->ki_flags & IOCB_DIRECT) { in blkdev_write_iter()
714 if (iocb->ki_flags & IOCB_DIRECT) { in blkdev_read_iter()
/linux-6.6.21/fs/overlayfs/
Dfile.c292 if (iocb->ki_flags & IOCB_WRITE) { in ovl_aio_cleanup_handler()
328 if (iocb->ki_flags & IOCB_DIRECT && in ovl_read_iter()
335 ovl_iocb_to_rwf(iocb->ki_flags)); in ovl_read_iter()
369 int ifl = iocb->ki_flags; in ovl_write_iter()
386 if (iocb->ki_flags & IOCB_DIRECT && in ovl_write_iter()
417 aio_req->iocb.ki_flags = ifl; in ovl_write_iter()
/linux-6.6.21/fs/xfs/
Dxfs_file.c207 if (iocb->ki_flags & IOCB_NOWAIT) { in xfs_ilock_iocb()
336 else if (iocb->ki_flags & IOCB_DIRECT) in xfs_file_read_iter()
400 if (iocb->ki_flags & IOCB_NOWAIT) { in xfs_file_write_checks()
454 if (iocb->ki_flags & IOCB_NOWAIT) in xfs_file_write_checks()
651 if (iocb->ki_flags & IOCB_NOWAIT) in xfs_file_dio_write_unaligned()
694 if (ret == -EAGAIN && !(iocb->ki_flags & IOCB_NOWAIT)) { in xfs_file_dio_write_unaligned()
849 if (iocb->ki_flags & IOCB_DIRECT) { in xfs_file_write_iter()
/linux-6.6.21/mm/
Dfilemap.c2428 if (iocb->ki_flags & IOCB_NOWAIT) { in filemap_update_page()
2437 if (iocb->ki_flags & (IOCB_NOWAIT | IOCB_NOIO)) in filemap_update_page()
2439 if (!(iocb->ki_flags & IOCB_WAITQ)) { in filemap_update_page()
2463 if (iocb->ki_flags & (IOCB_NOIO | IOCB_NOWAIT | IOCB_WAITQ)) in filemap_update_page()
2529 if (iocb->ki_flags & IOCB_NOIO) in filemap_readahead()
2554 if (iocb->ki_flags & IOCB_NOIO) in filemap_get_pages()
2561 if (iocb->ki_flags & (IOCB_NOWAIT | IOCB_WAITQ)) in filemap_get_pages()
2577 if ((iocb->ki_flags & IOCB_WAITQ) && in filemap_get_pages()
2579 iocb->ki_flags |= IOCB_NOWAIT; in filemap_get_pages()
2646 if ((iocb->ki_flags & IOCB_WAITQ) && already_read) in filemap_read()
[all …]
/linux-6.6.21/fs/gfs2/
Dfile.c962 if (iocb->ki_flags & IOCB_DIRECT) in gfs2_file_read_iter()
966 iocb->ki_flags |= IOCB_NOIO; in gfs2_file_read_iter()
968 iocb->ki_flags &= ~IOCB_NOIO; in gfs2_file_read_iter()
977 if (iocb->ki_flags & IOCB_NOWAIT) in gfs2_file_read_iter()
1107 if (iocb->ki_flags & IOCB_APPEND) { in gfs2_file_write_iter()
1127 if (iocb->ki_flags & IOCB_DIRECT) { in gfs2_file_write_iter()
1135 iocb->ki_flags |= IOCB_DSYNC; in gfs2_file_write_iter()
/linux-6.6.21/fs/nfs/
Dfile.c162 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_read()
650 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_write()
661 if (iocb->ki_flags & IOCB_APPEND || iocb->ki_pos > i_size_read(inode)) { in nfs_file_write()
/linux-6.6.21/fs/
Daio.c601 if (!(iocb->ki_flags & IOCB_AIO_RW)) in kiocb_set_cancel_fn()
1454 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1473 req->ki_flags = req->ki_filp->f_iocb_flags | IOCB_AIO_RW; in aio_prep_rw()
1475 req->ki_flags |= IOCB_EVENTFD; in aio_prep_rw()
1496 req->ki_flags &= ~IOCB_HIPRI; /* no one is going to poll for this I/O */ in aio_prep_rw()
1588 req->ki_flags |= IOCB_WRITE; in aio_write()
Deventfd.c237 (iocb->ki_flags & IOCB_NOWAIT)) { in eventfd_read()
Dread_write.c1666 if (iocb->ki_flags & IOCB_APPEND) in generic_write_checks_count()
1669 if ((iocb->ki_flags & IOCB_NOWAIT) && in generic_write_checks_count()
1670 !((iocb->ki_flags & IOCB_DIRECT) || in generic_write_checks_count()
Dpipe.c346 (iocb->ki_flags & IOCB_NOWAIT)) { in pipe_read()
549 (iocb->ki_flags & IOCB_NOWAIT)) { in pipe_write()
/linux-6.6.21/fs/ceph/
Dfile.c1199 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()
2012 bool direct_lock = iocb->ki_flags & IOCB_DIRECT; in ceph_read_iter()
2044 (iocb->ki_flags & IOCB_DIRECT) || in ceph_read_iter()
2053 (iocb->ki_flags & IOCB_DIRECT) && in ceph_read_iter()
2252 if ((iocb->ki_flags & (IOCB_DIRECT | IOCB_APPEND)) == IOCB_DIRECT) in ceph_write_iter()
2261 if (iocb->ki_flags & IOCB_APPEND) { in ceph_write_iter()
2320 (iocb->ki_flags & IOCB_DIRECT) || (fi->flags & CEPH_F_SYNC) || in ceph_write_iter()
2340 if ((iocb->ki_flags & IOCB_DIRECT) && !IS_ENCRYPTED(inode)) in ceph_write_iter()
2391 iocb->ki_flags |= IOCB_DSYNC; in ceph_write_iter()
/linux-6.6.21/fs/cachefiles/
Dio.c140 ki->iocb.ki_flags = IOCB_DIRECT; in cachefiles_read()
308 ki->iocb.ki_flags = IOCB_DIRECT | IOCB_WRITE; in __cachefiles_write()
/linux-6.6.21/include/linux/
Dfs.h378 int ki_flags; member
2173 .ki_flags = filp->f_iocb_flags, in init_sync_kiocb()
2183 .ki_flags = kiocb_src->ki_flags, in kiocb_clone()
2633 return (iocb->ki_flags & IOCB_DSYNC) || in iocb_is_dsync()
2647 (iocb->ki_flags & IOCB_SYNC) ? 0 : 1); in generic_write_sync()
3261 ki->ki_flags |= kiocb_flags; in kiocb_set_rw_flags()
/linux-6.6.21/fs/ntfs3/
Dfile.c749 if (is_compressed(ni) && (iocb->ki_flags & IOCB_DIRECT)) { in ntfs_file_read_iter()
1083 if (is_compressed(ni) && (iocb->ki_flags & IOCB_DIRECT)) { in ntfs_file_write_iter()
1094 if (iocb->ki_flags & IOCB_NOWAIT) in ntfs_file_write_iter()
/linux-6.6.21/drivers/target/
Dtarget_core_file.c296 aio_cmd->iocb.ki_flags = IOCB_DIRECT; in fd_execute_rw_aio()
299 aio_cmd->iocb.ki_flags |= IOCB_DSYNC; in fd_execute_rw_aio()
/linux-6.6.21/fs/btrfs/
Dfile.c1145 if ((iocb->ki_flags & IOCB_NOWAIT) && in btrfs_write_check()
1194 const bool nowait = (iocb->ki_flags & IOCB_NOWAIT); in btrfs_buffered_write()
1467 if (iocb->ki_flags & IOCB_NOWAIT) in btrfs_direct_write()
1597 if (iocb->ki_flags & IOCB_NOWAIT) { in btrfs_direct_write()
1673 if (encoded && (iocb->ki_flags & IOCB_NOWAIT)) in btrfs_do_write_iter()
1679 } else if (iocb->ki_flags & IOCB_DIRECT) { in btrfs_do_write_iter()
3811 if (iocb->ki_flags & IOCB_DIRECT) { in btrfs_file_read_iter()
/linux-6.6.21/fs/erofs/
Ddata.c385 if (iocb->ki_flags & IOCB_DIRECT) { in erofs_file_read_iter()

12