reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show()
authorDavid Howells <dhowells@redhat.com>
Fri, 12 Apr 2013 10:17:06 +0000 (11:17 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 1 May 2013 21:29:43 +0000 (17:29 -0400)
commite42270a19e357d7808890bdbeb0cae97f2a2d234
tree9d8716ba61855be0479e9bd8ef859dbec79c3e05
parent4a520d2769beb736ba2bd084b8293ce148a1a7ae
reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show()

Don't access the proc_dir_entry in ReiserFS's r_open(), r_start() r_show()
procfs interface functions.

ReiserFS stores the ->show() method pointer in PDE->data and the super_block
pointer in PDE->parent->data.  This isn't changing.

Currently, ReiserFS passes the PDE pointer into seq_file::private from
r_open() so that r_start() and r_show() can then access it.  Instead, use
seq_open_private() to allocate a two-pointer struct that's passed through
seq_file::private and put the ->show() method and the sb pointers in there.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: reiserfs-devel@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/procfs.c