]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Get rid of magic numbers in fs
authorRusty Russell <trivial@rustcorp.com.au>
Sun, 5 Oct 2003 04:32:24 +0000 (21:32 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 5 Oct 2003 04:32:24 +0000 (21:32 -0700)
From:  Scharfe <l.s.r@web.de>

drivers/block/genhd.c
fs/partitions/check.c

index 0cbabe9103d41dedb25b74ac8c2a4af35d62f599..290622c35b939e734159c9b8ba915656e53bfa3c 100644 (file)
@@ -250,7 +250,7 @@ static int show_partition(struct seq_file *part, void *v)
 {
        struct gendisk *sgp = v;
        int n;
-       char buf[64];
+       char buf[BDEVNAME_SIZE];
 
        if (&sgp->kobj.entry == block_subsys.kset.list.next)
                seq_puts(part, "major minor  #blocks  name\n\n");
@@ -472,7 +472,7 @@ static void diskstats_stop(struct seq_file *part, void *v)
 static int diskstats_show(struct seq_file *s, void *v)
 {
        struct gendisk *gp = v;
-       char buf[64];
+       char buf[BDEVNAME_SIZE];
        int n = 0;
 
        /*
index 08585ea0bcf125be832ff64c20036337f664ce5c..2de675b6aaf920bef9c26d8764f6a383982ef8bb 100644 (file)
@@ -111,7 +111,7 @@ static int (*check_part[])(struct parsed_partitions *, struct block_device *) =
 };
  
 /*
- * disk_name() is used by partition check code and the md driver.
+ * disk_name() is used by partition check code and the genhd driver.
  * It formats the devicename of the indicated disk into
  * the supplied buffer (of size at least 32), and returns
  * a pointer to that same buffer (for convenience).