Re: [PATCH v2 03/11] block: Introduce REQ_OP_ZONE_APPEND

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

 



On 24/03/2020 16:25, Johannes Thumshirn wrote:
> +static inline bool bio_can_zone_append(struct bio *bio, unsigned len)
> +{
> +	struct request_queue *q = bio->bi_disk->queue;
> +	unsigned int max_append_sectors = queue_max_zone_append_sectors(q);
> +
> +	if (WARN_ON_ONCE(!max_append_sectors))
> +		return false;
> +
> +	if (((bio->bi_iter.bi_size + len) >> 9) > max_append_sectors)
> +		return false;
> +
> +	if (bio->bi_vcnt >= q->limits.max_segments)
> +		return false;
> +
> +	return true;
> +}

That return values need to be reversed as well...




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux