summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorAsias He <asias@redhat.com>2013-02-27 13:29:30 +0800
committerNicholas Bellinger <nab@linux-iscsi.org>2013-02-27 19:24:20 -0800
commit2dbe10a202d2743582b5fb7c9864455ef6ecf9a6 (patch)
tree80ea9aa6e7261642f184d10f5688f0c06209f329 /drivers/target
parent472b72f2db7831d7dbe22ffdff4adee3bd49b05d (diff)
downloadop-kernel-dev-2dbe10a202d2743582b5fb7c9864455ef6ecf9a6.zip
op-kernel-dev-2dbe10a202d2743582b5fb7c9864455ef6ecf9a6.tar.gz
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 <asias@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_pscsi.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud