]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Allow use of 256 loop devices
authorDave Jones <davej@suse.de>
Wed, 3 Apr 2002 03:59:34 +0000 (19:59 -0800)
committerDave Jones <davej@suse.de>
Wed, 3 Apr 2002 03:59:34 +0000 (19:59 -0800)
Because 256 is rounder than 255 I guess 8-)

drivers/block/loop.c

index cfce7b234c5714455141e103ec73ff56ee1908eb..cabf25eff9269445c63367d7f165752952967bdb 100644 (file)
@@ -36,6 +36,9 @@
  * Al Viro too.
  * Jens Axboe <axboe@suse.de>, Nov 2000
  *
+ * Support up to 256 loop devices
+ * Heinz Mauelshagen <mge@sistina.com>, Feb 2002
+ *
  * Still To Fix:
  * - Advisory locking is ignored here. 
  * - Should use an own CAP_* category instead of CAP_SYS_ADMIN 
@@ -927,7 +930,7 @@ static struct block_device_operations lo_fops = {
  * And now the modules code and kernel interface.
  */
 MODULE_PARM(max_loop, "i");
-MODULE_PARM_DESC(max_loop, "Maximum number of loop devices (1-255)");
+MODULE_PARM_DESC(max_loop, "Maximum number of loop devices (1-256)");
 MODULE_LICENSE("GPL");
 
 int loop_register_transfer(struct loop_func_table *funcs)
@@ -963,9 +966,9 @@ int __init loop_init(void)
 {
        int     i;
 
-       if ((max_loop < 1) || (max_loop > 255)) {
+       if ((max_loop < 1) || (max_loop > 256)) {
                printk(KERN_WARNING "loop: invalid max_loop (must be between"
-                                   " 1 and 255), using default (8)\n");
+                                   " 1 and 256), using default (8)\n");
                max_loop = 8;
        }