Commit f6e3ca00 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] reiserfs/procfs.c fix

Fix breakage in reiserfs/procfs.c iterator.

Nikita had ACKed the patch.
parent b7838ca6
...@@ -478,14 +478,15 @@ static void *r_start(struct seq_file *m, loff_t *pos) ...@@ -478,14 +478,15 @@ static void *r_start(struct seq_file *m, loff_t *pos)
static void *r_next(struct seq_file *m, void *v, loff_t *pos) static void *r_next(struct seq_file *m, void *v, loff_t *pos)
{ {
++*pos; ++*pos;
if (v)
deactivate_super(v);
return NULL; return NULL;
} }
static void r_stop(struct seq_file *m, void *v) static void r_stop(struct seq_file *m, void *v)
{ {
struct proc_dir_entry *de = m->private; if (v)
struct super_block *s = de->data; deactivate_super(v);
deactivate_super(s);
} }
static int r_show(struct seq_file *m, void *v) static int r_show(struct seq_file *m, void *v)
......
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