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...




[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