Searched refs:bio (Results 151 - 175 of 379) sorted by last modified time

1234567891011>>

/linux-master/fs/bcachefs/
H A Dbtree_node_scan.c122 struct bio *bio, struct btree_node *bn, u64 offset)
126 bio_reset(bio, ca->disk_sb.bdev, REQ_OP_READ);
127 bio->bi_iter.bi_sector = offset;
128 bch2_bio_map(bio, bn, PAGE_SIZE);
130 submit_bio_wait(bio);
131 if (bch2_dev_io_err_on(bio->bi_status, ca, BCH_MEMBER_ERROR_read,
133 offset, bch2_blk_status_to_str(bio->bi_status)))
189 struct bio *bio local
121 try_read_btree_node(struct find_btree_nodes *f, struct bch_dev *ca, struct bio *bio, struct btree_node *bn, u64 offset) argument
[all...]
H A Dcompress.h50 int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
52 int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,
54 unsigned bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
55 struct bio *, size_t *, unsigned);
H A Dchecksum.h82 struct nonce, struct bio *);
84 int bch2_rechecksum_bio(struct bch_fs *, struct bio *, struct bversion,
91 struct nonce, struct bio *);
94 struct nonce nonce, struct bio *bio)
97 ? __bch2_encrypt_bio(c, type, nonce, bio)
H A Dutil.h5 #include <linux/bio.h>
445 void bch2_bio_map(struct bio *bio, void *base, size_t);
446 int bch2_bio_alloc_pages(struct bio *, size_t, gfp_t);
453 #define closure_bio_submit(bio, cl) \
456 submit_bio(bio); \
501 void memcpy_to_bio(struct bio *, struct bvec_iter, const void *);
502 void memcpy_from_bio(void *, struct bio *, struct bvec_iter);
H A Dfs-io-pagecache.h140 void bch2_bio_page_state_set(struct bio *, struct bkey_s_c);
H A Dcompress.c41 static bool bio_phys_contig(struct bio *bio, struct bvec_iter start) argument
47 __bio_for_each_bvec(bv, bio, iter, start) {
59 static struct bbuf __bio_map_or_bounce(struct bch_fs *c, struct bio *bio, argument
72 if (!PageHighMem(bio_iter_page(bio, start)) &&
73 bio_phys_contig(bio, start))
75 .b = page_address(bio_iter_page(bio, start)) +
76 bio_iter_offset(bio, start),
81 __bio_for_each_segment(bv, bio, ite
123 bio_map_or_bounce(struct bch_fs *c, struct bio *bio, int rw) argument
223 bch2_bio_uncompress_inplace(struct bch_fs *c, struct bio *bio, struct bch_extent_crc_unpacked *crc) argument
[all...]
/linux-master/fs/erofs/
H A Dfscache.c179 struct bio bio; /* w/o bdev to share bio_add_page/endio() */ member in struct:erofs_fscache_bio
189 io->bio.bi_status = errno_to_blk_status(transferred_or_error);
190 io->bio.bi_end_io(&io->bio);
195 struct bio *erofs_fscache_bio_alloc(struct erofs_map_dev *mdev)
200 bio_init(&io->bio, NULL, io->bvecs, BIO_MAX_VECS, REQ_OP_READ);
204 return &io->bio;
207 void erofs_fscache_submit_bio(struct bio *bio) argument
[all...]
/linux-master/fs/btrfs/
H A Dscrub.c788 int sector_nr = calc_sector_number(stripe, bio_first_bvec_all(&bbio->bio));
794 bio_for_each_bvec_all(bvec, &bbio->bio, i)
797 if (bbio->bio.bi_status) {
806 bio_put(&bbio->bio);
836 /* The current sector cannot be merged, submit the bio. */
838 bbio->bio.bi_iter.bi_size >= blocksize)) {
839 ASSERT(bbio->bio.bi_iter.bi_size);
850 bbio->bio.bi_iter.bi_sector = (stripe->logical +
854 ret = bio_add_page(&bbio->bio, page, fs_info->sectorsize, pgoff);
858 ASSERT(bbio->bio
1877 raid56_scrub_wait_endio(struct bio *bio) argument
1935 struct bio *bio; local
2757 struct bio bio; local
[all...]
H A Dzoned.c19 #include "bio.h"
748 * we add the pages one by one to a bio, and cannot increase the
1713 u64 start = (bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT);
1725 if (btrfs_op(&bbio->bio) != BTRFS_MAP_WRITE)
1752 const u64 physical = bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT;
/linux-master/block/
H A Dblk-iocost.c106 * fill up and a bio which is ready to be issued has to wait for a request
567 struct bio *bio; member in struct:iocg_wait
717 static void iocg_commit_bio(struct ioc_gq *iocg, struct bio *bio, argument
722 bio->bi_iocost_cost = cost;
1473 iocg_commit_bio(ctx->iocg, wait->bio, wait->abs_cost, cost);
2521 static void calc_vtime_cost_builtin(struct bio *bio, struct ioc_gq *iocg, argument
2526 u64 pages = max_t(u64, bio_sectors(bio) >> IOC_SECT_TO_PAGE_SHIF
2566 calc_vtime_cost(struct bio *bio, struct ioc_gq *iocg, bool is_merge) argument
2599 ioc_rqos_throttle(struct rq_qos *rqos, struct bio *bio) argument
2734 ioc_rqos_merge(struct rq_qos *rqos, struct request *rq, struct bio *bio) argument
2793 ioc_rqos_done_bio(struct rq_qos *rqos, struct bio *bio) argument
[all...]
H A Dblk-cgroup.h225 * bio_issue_as_root_blkg - see if this bio needs to be issued as root blkg
226 * @return: true if this bio needs to be submitted with the root blkg context.
228 * In order to avoid priority inversions we sometimes need to issue a bio as if
231 * the bio and attach the appropriate blkg to the bio. Then we call this helper
235 static inline bool bio_issue_as_root_blkg(struct bio *bio) argument
237 return (bio->bi_opf & (REQ_META | REQ_SWAP)) != 0;
380 static inline void blkcg_bio_issue_init(struct bio *bio) argument
463 blk_cgroup_mergeable(struct request *rq, struct bio *bio) argument
502 blkcg_bio_issue_init(struct bio *bio) argument
503 blk_cgroup_bio_start(struct bio *bio) argument
504 blk_cgroup_mergeable(struct request *rq, struct bio *bio) argument
[all...]
/linux-master/fs/zonefs/
H A Dsuper.c1115 struct bio bio; local
1122 bio_init(&bio, sb->s_bdev, &bio_vec, 1, REQ_OP_READ);
1123 bio.bi_iter.bi_sector = 0;
1124 __bio_add_page(&bio, page, PAGE_SIZE, 0);
1126 ret = submit_bio_wait(&bio);
/linux-master/drivers/md/
H A Draid1.c120 * for resync bio, r1bio pointer can be retrieved from the per-bio
123 static inline struct r1bio *get_resync_r1bio(struct bio *bio) argument
125 return get_resync_pages(bio)->raid_bio;
148 struct bio *bio; local
166 bio = bio_kmalloc(RESYNC_PAGES, gfp_flags);
167 if (!bio)
169 bio_init(bio, NUL
244 struct bio **bio = r1_bio->bios + i; local
266 struct bio *bio = r1_bio->bios[i]; local
300 struct bio *bio = r1_bio->master_bio; local
310 struct bio *bio = r1_bio->master_bio; local
346 find_bio_disk(struct r1bio *r1_bio, struct bio *bio) argument
362 raid1_end_read_request(struct bio *bio) argument
444 raid1_end_write_request(struct bio *bio) argument
893 flush_bio_list(struct r1conf *conf, struct bio *bio) argument
917 struct bio *bio; local
1213 alloc_behind_master_bio(struct r1bio *r1_bio, struct bio *bio) argument
1267 struct bio *bio; local
1285 init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) argument
1295 alloc_r1bio(struct mddev *mddev, struct bio *bio) argument
1307 raid1_read_request(struct mddev *mddev, struct bio *bio, int max_read_sectors, struct r1bio *r1_bio) argument
1422 raid1_write_request(struct mddev *mddev, struct bio *bio, int max_write_sectors) argument
1669 raid1_make_request(struct mddev *mddev, struct bio *bio) argument
2016 end_sync_read(struct bio *bio) argument
2064 end_sync_write(struct bio *bio) argument
2122 struct bio *bio = r1_bio->bios[r1_bio->read_disk]; local
2543 struct bio *bio = r1_bio->bios[m]; local
2609 struct bio *bio; local
2736 struct bio *bio; local
2764 struct bio *bio; local
[all...]
H A Ddm-integrity.c10 #include "dm-bio-record.h"
1562 struct bio *bio; local
1566 bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io));
1567 bio_list_add(&ic->flush_bio_list, bio);
1573 static void do_endio(struct dm_integrity_c *ic, struct bio *bio) argument
1578 if (unlikely(r) && !bio->bi_status)
1579 bio->bi_status = errno_to_blk_status(r);
1580 if (unlikely(ic->synchronous_mode) && bio_op(bio)
1594 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local
1606 struct bio *bio; local
1627 integrity_end_io(struct bio *bio) argument
1696 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local
1784 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local
1916 dm_integrity_map(struct dm_target *ti, struct bio *bio) argument
2016 __journal_read_write(struct dm_integrity_io *dio, struct bio *bio, unsigned int journal_section, unsigned int journal_entry) argument
2173 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local
2875 struct bio *bio; local
2929 struct bio *bio; local
[all...]
H A Ddm-snap.c204 * in a bio list
229 struct bio *full_bio;
245 static void init_tracked_chunk(struct bio *bio) argument
247 struct dm_snap_tracked_chunk *c = dm_per_bio_data(bio, sizeof(struct dm_snap_tracked_chunk));
252 static bool is_bio_tracked(struct bio *bio) argument
254 struct dm_snap_tracked_chunk *c = dm_per_bio_data(bio, sizeof(struct dm_snap_tracked_chunk));
259 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_ argument
271 stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio) argument
1571 flush_bios(struct bio *bio) argument
1588 retry_origin_bios(struct dm_snapshot *s, struct bio *bio) argument
1606 error_bios(struct bio *bio) argument
1816 full_bio_end_io(struct bio *bio) argument
1823 start_full_bio(struct dm_snap_pending_exception *pe, struct bio *bio) argument
1907 remap_exception(struct dm_snapshot *s, struct dm_exception *e, struct bio *bio, chunk_t chunk) argument
1919 struct bio *bio = context; local
1927 zero_exception(struct dm_snapshot *s, struct dm_exception *e, struct bio *bio, chunk_t chunk) argument
1942 io_overlaps_chunk(struct dm_snapshot *s, struct bio *bio) argument
1948 snapshot_map(struct dm_target *ti, struct bio *bio) argument
2116 snapshot_merge_map(struct dm_target *ti, struct bio *bio) argument
2182 snapshot_end_io(struct dm_target *ti, struct bio *bio, blk_status_t *error) argument
2434 __origin_write(struct list_head *snapshots, sector_t sector, struct bio *bio) argument
2556 do_origin(struct dm_dev *origin, struct bio *bio, bool limit) argument
2667 origin_map(struct dm_target *ti, struct bio *bio) argument
[all...]
/linux-master/drivers/scsi/
H A Dsg.c136 struct bio *bio; member in struct:sg_request
815 if (srp->bio) {
1386 * result. But keep the associated bio (if any) around until
1823 srp->bio = rq->bio;
1844 if (srp->bio)
1845 ret = blk_rq_unmap_user(srp->bio);
/linux-master/fs/jfs/
H A Djfs_logmgr.c55 #include <linux/bio.h>
1964 struct bio *bio; local
1975 bio = bio_alloc(file_bdev(log->bdev_file), 1, REQ_OP_READ, GFP_NOFS);
1976 bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9);
1977 __bio_add_page(bio, bp->l_page, LOGPSIZE, bp->l_offset);
1978 BUG_ON(bio->bi_iter.bi_size != LOGPSIZE);
1980 bio->bi_end_io = lbmIODone;
1981 bio->bi_private = bp;
1984 bio
2111 struct bio *bio; local
2170 lbmIODone(struct bio *bio) argument
[all...]
/linux-master/drivers/nvme/host/
H A Dfc.c1920 if (!IS_ENABLED(CONFIG_BLK_CGROUP_FC_APPID) || !rq || !rq->bio)
1922 return blkcg_get_fc_appid(rq->bio);
/linux-master/drivers/mtd/devices/
H A Dblock2mtd.c24 #include <linux/bio.h>
/linux-master/fs/exfat/
H A Dinode.c9 #include <linux/bio.h>
/linux-master/drivers/block/
H A Dfloppy.c178 #include <linux/bio.h>
4126 static void floppy_rb0_cb(struct bio *bio) argument
4128 struct rb0_cbdata *cbdata = (struct rb0_cbdata *)bio->bi_private;
4131 if (bio->bi_status) {
4133 bio->bi_status);
4141 struct bio bio; local
4154 bio_init(&bio, bdev, &bio_vec, 1, REQ_OP_READ);
4155 __bio_add_page(&bio, pag
[all...]
/linux-master/drivers/s390/block/
H A Ddcssblk.c33 static void dcssblk_submit_bio(struct bio *bio);
861 dcssblk_submit_bio(struct bio *bio) argument
872 dev_info = bio->bi_bdev->bd_disk->private_data;
875 if (!IS_ALIGNED(bio->bi_iter.bi_sector, 8) ||
876 !IS_ALIGNED(bio->bi_iter.bi_size, PAGE_SIZE))
886 if (bio_data_dir(bio) == WRITE) {
894 index = (bio->bi_iter.bi_sector >> 3);
895 bio_for_each_segment(bvec, bio, ite
[all...]
H A Ddasd_fba.c16 #include <linux/bio.h>
453 /* Check struct bio and count the number of blocks for the request. */
/linux-master/include/linux/
H A Ddm-io.h46 struct bio *bio; member in union:dm_io_memory::__anon1093
/linux-master/fs/udf/
H A Ddir.c29 #include <linux/bio.h>

Completed in 295 milliseconds

1234567891011>>