[PATCH] reiserfs: eliminate private use of struct file in xattr
authorJeff Mahoney <jeffm@suse.com>
Fri, 15 Feb 2008 22:37:22 +0000 (14:37 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Mar 2008 10:49:36 +0000 (06:49 -0400)
commit3227e14c3cab5ef7972c72eb13c13de444b5bfbc
treee846d8e513f1d43da3e5ca9a7004fb8349b67852
parentf382d6e631fe424200ee0d8bb16539f5b7bef7be
[PATCH] reiserfs: eliminate private use of struct file in xattr

After several posts and bug reports regarding interaction with the NULL
nameidata, here's a patch to clean up the mess with struct file in the
reiserfs xattr code.

As observed in several of the posts, there's really no need for struct file
to exist in the xattr code.  It was really only passed around due to the
f_op->readdir() and a_ops->{prepare,commit}_write prototypes requiring it.

reiserfs_prepare_write() and reiserfs_commit_write() don't actually use the
struct file passed to it, and the xattr code uses a private version of
reiserfs_readdir() to enumerate the xattr directories.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/xattr.c