Commit 24a4286f authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Linus Torvalds

[PATCH] reiserfs: change reiserfs to use S_PRIVATE

This patch changes reiserfs to use the VFS level private inode flags, and
eliminates the old reiserfs private inode flag.
Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0bf0b7bc
...@@ -23,9 +23,8 @@ typedef enum { ...@@ -23,9 +23,8 @@ typedef enum {
space on crash with some files open, but unlinked. */ space on crash with some files open, but unlinked. */
i_link_saved_unlink_mask = 0x0010, i_link_saved_unlink_mask = 0x0010,
i_link_saved_truncate_mask = 0x0020, i_link_saved_truncate_mask = 0x0020,
i_priv_object = 0x0080, i_has_xattr_dir = 0x0040,
i_has_xattr_dir = 0x0100, i_data_log = 0x0080,
i_data_log = 0x0200,
} reiserfs_inode_flags; } reiserfs_inode_flags;
......
...@@ -31,7 +31,7 @@ struct reiserfs_xattr_handler { ...@@ -31,7 +31,7 @@ struct reiserfs_xattr_handler {
#ifdef CONFIG_REISERFS_FS_XATTR #ifdef CONFIG_REISERFS_FS_XATTR
#define is_reiserfs_priv_object(inode) (REISERFS_I(inode)->i_flags & i_priv_object) #define is_reiserfs_priv_object(inode) IS_PRIVATE(inode)
#define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir) #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir)
ssize_t reiserfs_getxattr (struct dentry *dentry, const char *name, ssize_t reiserfs_getxattr (struct dentry *dentry, const char *name,
void *buffer, size_t size); void *buffer, size_t size);
...@@ -106,7 +106,7 @@ reiserfs_read_unlock_xattr_i(struct inode *inode) ...@@ -106,7 +106,7 @@ reiserfs_read_unlock_xattr_i(struct inode *inode)
static inline void static inline void
reiserfs_mark_inode_private(struct inode *inode) reiserfs_mark_inode_private(struct inode *inode)
{ {
REISERFS_I(inode)->i_flags |= i_priv_object; inode->i_flags |= S_PRIVATE;
} }
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment