Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2003-10-15 17:51:49 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-15 17:51:49 -0700
commitf6e3ca00c1e36139100c8b3dffc742c61de60625 (patch)
treeac95c4dd9324302ada9332a4925a7b5047340d12
parentb7838ca668c86dccca64f41efca88e5aaf0a3375 (diff)
[PATCH] reiserfs/procfs.c fix
Fix breakage in reiserfs/procfs.c iterator. Nikita had ACKed the patch.
-rw-r--r--fs/reiserfs/procfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/reiserfs/procfs.c b/fs/reiserfs/procfs.c
index 90074d247eb6..377d12003f21 100644
--- a/fs/reiserfs/procfs.c
+++ b/fs/reiserfs/procfs.c
@@ -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)
{
++*pos;
+ if (v)
+ deactivate_super(v);
return NULL;
}
static void r_stop(struct seq_file *m, void *v)
{
- struct proc_dir_entry *de = m->private;
- struct super_block *s = de->data;
- deactivate_super(s);
+ if (v)
+ deactivate_super(v);
}
static int r_show(struct seq_file *m, void *v)