From: Asias He Date: Wed, 27 Feb 2013 05:29:30 +0000 (+0800) Subject: target/pscsi: Rename sg_num to nr_vecs in pscsi_get_bio() X-Git-Tag: v3.9-rc1~20^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2dbe10a202d2743582b5fb7c9864455ef6ecf9a6;p=platform%2Fkernel%2Flinux-stable.git target/pscsi: Rename sg_num to nr_vecs in pscsi_get_bio() It is actually a vector not a sg, so nr_vecs is better than sg_num. Signed-off-by: Asias He Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index f6921bf..82e78d7 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c @@ -840,14 +840,14 @@ static void pscsi_bi_endio(struct bio *bio, int error) bio_put(bio); } -static inline struct bio *pscsi_get_bio(int sg_num) +static inline struct bio *pscsi_get_bio(int nr_vecs) { struct bio *bio; /* * Use bio_malloc() following the comment in for bio -> struct request * in block/blk-core.c:blk_make_request() */ - bio = bio_kmalloc(GFP_KERNEL, sg_num); + bio = bio_kmalloc(GFP_KERNEL, nr_vecs); if (!bio) { pr_err("PSCSI: bio_kmalloc() failed\n"); return NULL;