projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad7f01
)
block: fix duplicate headers for /proc/partitions
author
Tejun Heo
<tj@kernel.org>
Thu, 4 Sep 2008 07:17:31 +0000
(09:17 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:12 +0000
(08:56 +0200)
seqf can be started multiple times for a read and the header should be
printed only for the initial one. Fix it.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c
patch
|
blob
|
blame
|
history
diff --git
a/block/genhd.c
b/block/genhd.c
index ed926b760ca002ad7821bf3acac9222e3ea2c838..8acaff0154e3e3aa913bc639c05ef3146a95862c 100644
(file)
--- a/
block/genhd.c
+++ b/
block/genhd.c
@@
-697,7
+697,7
@@
static void *show_partition_start(struct seq_file *seqf, loff_t *pos)
static void *p;
p = disk_seqf_start(seqf, pos);
- if (!IS_ERR(p) && p)
+ if (!IS_ERR(p) && p
&& !*pos
)
seq_puts(seqf, "major minor #blocks name\n\n");
return p;
}