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

- From: Chaitanya Kulkarni \<hidden\>
- Date: 2021-02-03 03:21:50 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/02/6256529
- Thread: https://ratatoskr.run/linux-block/2021/02/6253984/t.md

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