diff --git a/fs/reiserfs/xattr.h b/fs/reiserfs/xattr.h index c764352447ba1b1ccf91d05dcbb754901f824a0b..81bec2c80b25cf0699ea59bf2dca53b78d524726 100644 --- a/fs/reiserfs/xattr.h +++ b/fs/reiserfs/xattr.h @@ -43,7 +43,7 @@ void reiserfs_security_free(struct reiserfs_security_handle *sec); static inline int reiserfs_xattrs_initialized(struct super_block *sb) { - return REISERFS_SB(sb)->priv_root != NULL; + return REISERFS_SB(sb)->priv_root && REISERFS_SB(sb)->xattr_root; } #define xattr_size(size) ((size) + sizeof(struct reiserfs_xattr_header))