Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104749
b: refs/heads/master
c: 66c64af
h: refs/heads/master
i:
  104747: 8861d60
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 22, 2008
1 parent 01af68f commit 3d0cadd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68c4d4a7875c59f2e4b72901ab11ba978e75bde0
refs/heads/master: 66c64afec16a7b46212ecb2fa99998923bbeea3f
7 changes: 4 additions & 3 deletions trunk/block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ static int find_start(struct device *dev, void *data)
static void *part_start(struct seq_file *part, loff_t *pos)
{
struct device *dev;
loff_t n = *pos;

if (!n)
seq_puts(part, "major minor #blocks name\n\n");

mutex_lock(&block_class_lock);
dev = class_find_device(&block_class, NULL, (void *)pos, find_start);
Expand Down Expand Up @@ -338,9 +342,6 @@ static int show_partition(struct seq_file *part, void *v)
int n;
char buf[BDEVNAME_SIZE];

if (&sgp->dev.node == block_class.devices.next)
seq_puts(part, "major minor #blocks name\n\n");

/* Don't show non-partitionable removeable devices or empty devices */
if (!get_capacity(sgp) ||
(sgp->minors == 1 && (sgp->flags & GENHD_FL_REMOVABLE)))
Expand Down

0 comments on commit 3d0cadd

Please sign in to comment.