target/pscsi: Rename sg_num to nr_vecs in pscsi_get_bio()
authorAsias He <asias@redhat.com>
Wed, 27 Feb 2013 05:29:30 +0000 (13:29 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 28 Feb 2013 03:24:20 +0000 (19:24 -0800)
It is actually a vector not a sg, so nr_vecs is better than sg_num.

Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pscsi.c

index f6921bf991135e379cb564a914da788e852b7f56..82e78d72fdb61f1849f1204e6d02d0970fdb7b41 100644 (file)
@@ -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;