Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/nvme/target/
Dio-cmd-file.c91 unsigned long nr_segs, size_t count, int ki_flags) in nvmet_file_submit_bvec() argument
100 ki_flags |= IOCB_DSYNC; in nvmet_file_submit_bvec()
112 iocb->ki_flags = ki_flags | iocb_flags(req->ns->file); in nvmet_file_submit_bvec()
134 static bool nvmet_file_execute_io(struct nvmet_req *req, int ki_flags) in nvmet_file_execute_io() argument
190 if (!(ki_flags & IOCB_NOWAIT)) in nvmet_file_execute_io()
193 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags); in nvmet_file_execute_io()
199 if (WARN_ON_ONCE(!(ki_flags & IOCB_NOWAIT))) in nvmet_file_execute_io()
208 if ((ki_flags & IOCB_NOWAIT)) in nvmet_file_execute_io()
/Linux-v5.4/fs/ext4/
Dfile.c44 if (iocb->ki_flags & IOCB_NOWAIT) in ext4_dax_read_iter()
194 if (iocb->ki_flags & IOCB_NOWAIT) in ext4_dax_write_iter()
221 int o_direct = iocb->ki_flags & IOCB_DIRECT; in ext4_file_write_iter()
235 if (iocb->ki_flags & IOCB_NOWAIT) in ext4_file_write_iter()
262 } else if (iocb->ki_flags & IOCB_NOWAIT) { in ext4_file_write_iter()
/Linux-v5.4/fs/iomap/
Ddirect-io.c66 if (dio->iocb->ki_flags & IOCB_HIPRI) in iomap_dio_submit_bio()
440 if (iocb->ki_flags & IOCB_DSYNC) in iomap_dio_rw()
449 if ((iocb->ki_flags & (IOCB_DSYNC | IOCB_SYNC)) == IOCB_DSYNC) in iomap_dio_rw()
453 if (iocb->ki_flags & IOCB_NOWAIT) { in iomap_dio_rw()
543 if (!(iocb->ki_flags & IOCB_HIPRI) || in iomap_dio_rw()
/Linux-v5.4/fs/xfs/
Dxfs_file.c211 if (iocb->ki_flags & IOCB_NOWAIT) { in xfs_file_dax_read()
235 if (iocb->ki_flags & IOCB_NOWAIT) { in xfs_file_buffered_aio_read()
263 else if (iocb->ki_flags & IOCB_DIRECT) in xfs_file_read_iter()
520 if (iocb->ki_flags & IOCB_NOWAIT) { in xfs_file_dio_aio_write()
582 if (iocb->ki_flags & IOCB_NOWAIT) { in xfs_file_dax_write()
629 if (iocb->ki_flags & IOCB_NOWAIT) in xfs_file_buffered_aio_write()
715 if (iocb->ki_flags & IOCB_DIRECT) { in xfs_file_write_iter()
/Linux-v5.4/fs/ceph/
Dfile.c756 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()
1271 if (iocb->ki_flags & IOCB_DIRECT) in ceph_read_iter()
1283 if (iocb->ki_flags & IOCB_DIRECT) in ceph_read_iter()
1291 (iocb->ki_flags & IOCB_DIRECT) || in ceph_read_iter()
1299 if (!retry_op && (iocb->ki_flags & IOCB_DIRECT)) { in ceph_read_iter()
1328 if (iocb->ki_flags & IOCB_DIRECT) in ceph_read_iter()
1432 if (iocb->ki_flags & IOCB_DIRECT) in ceph_write_iter()
1440 if (iocb->ki_flags & IOCB_APPEND) { in ceph_write_iter()
1502 (iocb->ki_flags & IOCB_DIRECT) || (fi->flags & CEPH_F_SYNC) || in ceph_write_iter()
1522 if (iocb->ki_flags & IOCB_DIRECT) { in ceph_write_iter()
[all …]
/Linux-v5.4/fs/
Dio_uring.c493 rw = !(req->rw.ki_flags & IOCB_DIRECT); in io_queue_async_work()
959 if (kiocb->ki_flags & IOCB_WRITE) in io_complete_rw()
972 if (kiocb->ki_flags & IOCB_WRITE) in io_complete_rw_iopoll()
1100 kiocb->ki_flags = iocb_flags(kiocb->ki_filp); in io_prep_rw()
1118 if ((kiocb->ki_flags & IOCB_NOWAIT) || in io_prep_rw()
1123 kiocb->ki_flags |= IOCB_NOWAIT; in io_prep_rw()
1126 if (!(kiocb->ki_flags & IOCB_DIRECT) || in io_prep_rw()
1130 kiocb->ki_flags |= IOCB_HIPRI; in io_prep_rw()
1134 if (kiocb->ki_flags & IOCB_HIPRI) in io_prep_rw()
1346 if (kiocb->ki_flags & IOCB_HIPRI) in loop_rw_iter()
[all …]
Dblock_dev.c186 if (iocb->ki_flags & IOCB_DSYNC) in dio_bio_write_op()
248 if (iocb->ki_flags & IOCB_HIPRI) in __blkdev_direct_IO_simple()
256 if (!(iocb->ki_flags & IOCB_HIPRI) || in __blkdev_direct_IO_simple()
346 bool is_poll = (iocb->ki_flags & IOCB_HIPRI) != 0; in __blkdev_direct_IO()
409 if (iocb->ki_flags & IOCB_HIPRI) { in __blkdev_direct_IO()
450 if (!(iocb->ki_flags & IOCB_HIPRI) || in __blkdev_direct_IO()
1984 if ((iocb->ki_flags & (IOCB_NOWAIT | IOCB_DIRECT)) == IOCB_NOWAIT) in blkdev_write_iter()
Ddirect-io.c520 if (!(dio->iocb->ki_flags & IOCB_HIPRI) || in dio_await_one()
1256 if (iocb->ki_flags & IOCB_NOWAIT) in do_blockdev_direct_IO()
1261 if (iocb->ki_flags & IOCB_HIPRI) in do_blockdev_direct_IO()
1270 if (iocb->ki_flags & IOCB_DSYNC) in do_blockdev_direct_IO()
Daio.c1428 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1452 req->ki_flags = iocb_flags(req->ki_filp); in aio_prep_rw()
1454 req->ki_flags |= IOCB_EVENTFD; in aio_prep_rw()
1476 req->ki_flags &= ~IOCB_HIPRI; /* no one is going to poll for this I/O */ in aio_prep_rw()
1582 req->ki_flags |= IOCB_WRITE; in aio_write()
/Linux-v5.4/fs/nfs/
Dfile.c160 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_read()
604 if (iocb->ki_flags & IOCB_DIRECT) in nfs_file_write()
615 if (iocb->ki_flags & IOCB_APPEND) { in nfs_file_write()
/Linux-v5.4/mm/
Dfilemap.c2049 if (iocb->ki_flags & IOCB_NOWAIT) in generic_file_buffered_read()
2064 if (iocb->ki_flags & IOCB_NOWAIT) { in generic_file_buffered_read()
2282 if (iocb->ki_flags & IOCB_DIRECT) { in generic_file_read_iter()
2289 if (iocb->ki_flags & IOCB_NOWAIT) { in generic_file_read_iter()
2973 if (iocb->ki_flags & IOCB_APPEND) in generic_write_checks()
2976 if ((iocb->ki_flags & IOCB_NOWAIT) && !(iocb->ki_flags & IOCB_DIRECT)) in generic_write_checks()
3178 if (iocb->ki_flags & IOCB_NOWAIT) { in generic_file_direct_write()
3388 if (iocb->ki_flags & IOCB_DIRECT) { in __generic_file_write_iter()
/Linux-v5.4/fs/gfs2/
Dfile.c783 if (iocb->ki_flags & IOCB_DIRECT) { in gfs2_file_read_iter()
787 iocb->ki_flags &= ~IOCB_DIRECT; in gfs2_file_read_iter()
817 if (iocb->ki_flags & IOCB_APPEND) { in gfs2_file_write_iter()
842 if (iocb->ki_flags & IOCB_DIRECT) { in gfs2_file_write_iter()
/Linux-v5.4/include/linux/
Dfs.h327 int ki_flags; member
2068 .ki_flags = iocb_flags(filp), in init_sync_kiocb()
2852 if (iocb->ki_flags & IOCB_DSYNC) { in generic_write_sync()
2855 (iocb->ki_flags & IOCB_SYNC) ? 0 : 1); in generic_write_sync()
3404 ki->ki_flags |= IOCB_NOWAIT; in kiocb_set_rw_flags()
3407 ki->ki_flags |= IOCB_HIPRI; in kiocb_set_rw_flags()
3409 ki->ki_flags |= IOCB_DSYNC; in kiocb_set_rw_flags()
3411 ki->ki_flags |= (IOCB_DSYNC | IOCB_SYNC); in kiocb_set_rw_flags()
3413 ki->ki_flags |= IOCB_APPEND; in kiocb_set_rw_flags()
/Linux-v5.4/drivers/target/
Dtarget_core_file.c300 aio_cmd->iocb.ki_flags = IOCB_DIRECT; in fd_execute_rw_aio()
303 aio_cmd->iocb.ki_flags |= IOCB_DSYNC; in fd_execute_rw_aio()
/Linux-v5.4/fs/btrfs/
Dfile.c1895 const bool sync = iocb->ki_flags & IOCB_DSYNC; in btrfs_file_write_iter()
1902 if (!(iocb->ki_flags & IOCB_DIRECT) && in btrfs_file_write_iter()
1903 (iocb->ki_flags & IOCB_NOWAIT)) in btrfs_file_write_iter()
1907 if (iocb->ki_flags & IOCB_NOWAIT) in btrfs_file_write_iter()
1920 if (iocb->ki_flags & IOCB_NOWAIT) { in btrfs_file_write_iter()
1978 if (iocb->ki_flags & IOCB_DIRECT) { in btrfs_file_write_iter()
Dinode.c8671 } else if (iocb->ki_flags & IOCB_NOWAIT) { in btrfs_direct_IO()
/Linux-v5.4/fs/ocfs2/
Dfile.c2292 int direct_io = iocb->ki_flags & IOCB_DIRECT ? 1 : 0; in ocfs2_file_write_iter()
2293 int nowait = iocb->ki_flags & IOCB_NOWAIT ? 1 : 0; in ocfs2_file_write_iter()
2440 int direct_io = iocb->ki_flags & IOCB_DIRECT ? 1 : 0; in ocfs2_file_read_iter()
2441 int nowait = iocb->ki_flags & IOCB_NOWAIT ? 1 : 0; in ocfs2_file_read_iter()
/Linux-v5.4/fs/overlayfs/
Dfile.c213 int ifl = iocb->ki_flags; in ovl_iocb_to_rwf()
/Linux-v5.4/fs/fuse/
Dfile.c1029 if (iocb->ki_flags & IOCB_DSYNC) in fuse_write_flags()
1031 if (iocb->ki_flags & IOCB_SYNC) in fuse_write_flags()
1286 if (iocb->ki_flags & IOCB_DIRECT) { in fuse_cache_write_iter()
1508 if (!is_sync_kiocb(iocb) && iocb->ki_flags & IOCB_DIRECT) { in fuse_direct_read_iter()
1529 if (!is_sync_kiocb(iocb) && iocb->ki_flags & IOCB_DIRECT) { in fuse_direct_write_iter()
/Linux-v5.4/fs/f2fs/
Ddata.c1075 bool direct_io = iocb->ki_flags & IOCB_DIRECT; in f2fs_preallocate_blocks()
2852 if (iocb->ki_flags & IOCB_NOWAIT) { in f2fs_direct_IO()
Dfile.c3328 if (iocb->ki_flags & IOCB_NOWAIT) { in f2fs_file_write_iter()
3346 if ((iocb->ki_flags & IOCB_NOWAIT)) { in f2fs_file_write_iter()
/Linux-v5.4/drivers/block/
Dloop.c564 cmd->iocb.ki_flags = IOCB_DIRECT; in lo_rw_aio()
/Linux-v5.4/drivers/usb/gadget/function/
Df_fs.c824 bool kiocb_has_eventfd = io_data->kiocb->ki_flags & IOCB_EVENTFD; in ffs_user_copy_worker()