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,
> +
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
2 matches
Mail list logo