scatterlist: add sg_nents
authorMaxim Levitsky <maximlevitsky@gmail.com>
Thu, 27 Sep 2012 10:45:28 +0000 (12:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Sep 2012 10:45:28 +0000 (12:45 +0200)
commit2e484610296b25f0a04b516bc144a00731d1d845
treed45467ec0b7c2446652e685b270427183471a5ad
parentc2b1ad800b66f62105a7fd250604d72e07202e66
scatterlist: add sg_nents

Useful helper to know the number of entries in scatterlist.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/scatterlist.h
lib/scatterlist.c