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

Caleb Sander Mateos posted 2 patches 1 month, 1 week ago
drivers/block/loop.c  | 5 +----
drivers/block/zloop.c | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
[PATCH 0/2] use blk_rq_nr_phys_segments() instead of iterating bvecs
Posted by Caleb Sander Mateos 1 month, 1 week ago
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