Re: [RFC PATCH 01/37] block: introduce bio_init_fields() helper

2021-01-18 Thread Christoph Hellwig
I don't think a helper just to initialize a few fields is very useful. But there is something in this area I've wanted to do for a while: > +static inline void bio_init_fields(struct bio *bio, struct block_device > *bdev, > +sector_t sect, void *priv, > +

[RFC PATCH 01/37] block: introduce bio_init_fields() helper

2021-01-18 Thread Chaitanya Kulkarni
There are several places in the file-system, block layer, device drivers where struct bio members such as bdev, sector, private, end io callback, io priority, write hints are initialized where we can use a helper function. This pach introduces a helper function which we use in the block lyaer code