Re: [PATCH] block: recalculate segment count for multi-segment discard requests correctly

From: Chaitanya Kulkarni
Date: Tue Feb 02 2021 - 22:22:15 EST


On 2/2/21 18:39, Ming Lei wrote:
> + struct bio *bio = rq->bio;
> + for_each_bio(bio)
> + nr_phys_segs++;
> + return nr_phys_segs;
> + }
Also, you need to add a new line after declaration of bio in the above
code block.