]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xen-blkfront: rename indirect descriptor parameter
authorJan Beulich <JBeulich@suse.com>
Wed, 10 Feb 2016 11:21:15 +0000 (04:21 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 11 May 2016 18:34:15 +0000 (14:34 -0400)
"max" is rather ambiguous and carries pretty little meaning, the more
that there are also "max_queues" and "max_ring_page_order". Make this
"max_indirect_segments" instead, and at once change the type from int
to uint (to match the respective variable's type).

Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 14e710fe7897e37762512d336ab081c57de579a4)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
OraBug: 23268939

drivers/block/xen-blkfront.c

index 332b35f4162538bb48d9527e7cd698de694dbd28..9510f0a8338b2b02e0412e2daccd91248c0e1fcd 100644 (file)
@@ -126,8 +126,10 @@ static const struct block_device_operations xlvbd_block_fops;
  */
 
 static unsigned int xen_blkif_max_segments = 32;
-module_param_named(max, xen_blkif_max_segments, int, S_IRUGO);
-MODULE_PARM_DESC(max, "Maximum amount of segments in indirect requests (default is 32)");
+module_param_named(max_indirect_segments, xen_blkif_max_segments, uint,
+                  S_IRUGO);
+MODULE_PARM_DESC(max_indirect_segments,
+                "Maximum amount of segments in indirect requests (default is 32)");
 
 static unsigned int xen_blkif_max_queues = 4;
 module_param_named(max_queues, xen_blkif_max_queues, uint, S_IRUGO);