Re: [PATCH V9 6/9] nvmet: add bio init helper for different backends
From: Christoph Hellwig <hch@lst.de>
Date: 2021-01-12 07:34:41
Also in:
linux-block
From: Christoph Hellwig <hch@lst.de>
Date: 2021-01-12 07:34:41
Also in:
linux-block
+static inline void nvmet_bio_init(struct bio *bio, struct block_device *bdev,
+ unsigned int op, sector_t sect, void *private,
+ bio_end_io_t *bi_end_io)
+{
+ bio_set_dev(bio, bdev);
+ bio->bi_opf = op;
+ bio->bi_iter.bi_sector = sect;
+ bio->bi_private = private;
+ bio->bi_end_io = bi_end_io;
+}Nothing NVMe specific about this. The helper also doesn't relaly contain any logic either. _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme