]> git.hungrycats.org Git - linux/commitdiff
[PATCH] reiserfs/procfs.c fix
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 16 Oct 2003 00:51:49 +0000 (17:51 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 16 Oct 2003 00:51:49 +0000 (17:51 -0700)
Fix breakage in reiserfs/procfs.c iterator.

Nikita had ACKed the patch.

fs/reiserfs/procfs.c

index 90074d247eb6581f63ce1f41945cfd57aaed800f..377d12003f2192868f7ae29cbdb0e28b16202980 100644 (file)
@@ -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)