From: David Howells Date: Fri, 12 Apr 2013 10:17:06 +0000 (+0100) Subject: reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~74^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e42270a19e357d7808890bdbeb0cae97f2a2d234;p=pandora-kernel.git 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 cc: reiserfs-devel@vger.kernel.org Signed-off-by: Al Viro --- Reading git-diff-tree failed