[PATCH 0/2] use blk_rq_nr_phys_segments() instead of iterating bvecs

From: Caleb Sander Mateos
Date: Sat Nov 08 2025 - 18:01:30 EST


Minor simplification to loop and zloop to get the number of segments
from the request directly instead of iterating over all its bvecs.

Caleb Sander Mateos (2):
loop: use blk_rq_nr_phys_segments() instead of iterating bvecs
zloop: use blk_rq_nr_phys_segments() instead of iterating bvecs

drivers/block/loop.c | 5 +----
drivers/block/zloop.c | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)

--
2.45.2