On Tue, May 28, 2024 at 09:49:44PM +0800, Li Nan wrote:
在 2024/5/28 21:23, Christoph Hellwig 写道:
Looks good:As suggested by Kuai, I will use bio_sectors instead of bi_size in v3.
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
.
- if (bio->bi_iter.bi_size == 0) {
+ if (!bio_sectors(bio)) {
That looks weird. bio_sectors literally just shifts
bio->bi_iter.bi_size to be in units of sectors, which doesn't
matter for comparing with 0.
.