Commit 0d4f14fe authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Get rid of magic numbers in fs

From:  Scharfe <l.s.r@web.de>
parent 6d9298c7
......@@ -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;
/*
......
......@@ -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).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment