Re: [PATCH 02/11] block: introduce bio zone helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/05/2021 04:56, Damien Le Moal wrote:
> +static inline unsigned int bio_zone_no(struct request_queue *q,
> +				       struct bio *bio)
> +{
> +	return blk_queue_zone_no(q, bio->bi_iter.bi_sector);
> +}
> +
> +static inline unsigned int bio_zone_is_seq(struct request_queue *q,
> +					   struct bio *bio)
> +{
> +	return blk_queue_zone_is_seq(q, bio->bi_iter.bi_sector);
> +}
> +

Can't we derive the queue from the bio via bio->bi_bdev->bd_disk->queue
or would this be too much pointer chasing for a small helper like this?




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux