reiserfs: fixup xattr_root caching
authorJeff Mahoney <jeffm@suse.com>
Tue, 5 May 2009 19:30:15 +0000 (15:30 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2009 14:49:39 +0000 (10:49 -0400)
commitab17c4f02156c4f75d7fa43a5aa2a7f942d47201
tree20ff8ec91144d20966ac70adb24bd3372e3508c4
parentedcc37a0478836b4a51eafb1bcec6a52708f681d
reiserfs: fixup xattr_root caching

 The xattr_root caching was broken from my previous patch set. It wouldn't
 cause corruption, but could cause decreased performance due to allocating
 a larger chunk of the journal (~ 27 blocks) than it would actually use.

 This patch loads the xattr root dentry at xattr initialization and creates
 it on-demand. Since we're using the cached dentry, there's no point
 in keeping lookup_or_create_dir around, so that's removed.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/xattr.c
include/linux/reiserfs_fs_sb.h
include/linux/reiserfs_xattr.h