diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:37 -0400 |
commit | 6dfede696391133eadd7ce90b61c9573ee6e5a90 (patch) | |
tree | 2051bfc5108d0e7592b8738e43f4ae972d398ccd /include | |
parent | 010f5a21a323e7383e067009a7785462883fe5ea (diff) |
reiserfs: remove IS_PRIVATE helpers
There are a number of helper functions for marking a reiserfs inode
private that were leftover from reiserfs did its own thing wrt to
private inodes. S_PRIVATE has been in the kernel for some time, so this
patch removes the helpers and uses IS_PRIVATE instead.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/reiserfs_xattr.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/reiserfs_xattr.h b/include/linux/reiserfs_xattr.h index af135ae895db..58f32ba7f5a0 100644 --- a/include/linux/reiserfs_xattr.h +++ b/include/linux/reiserfs_xattr.h | |||
@@ -44,7 +44,6 @@ struct reiserfs_xattr_handler { | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | #ifdef CONFIG_REISERFS_FS_XATTR | 46 | #ifdef CONFIG_REISERFS_FS_XATTR |
47 | #define is_reiserfs_priv_object(inode) IS_PRIVATE(inode) | ||
48 | #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir) | 47 | #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir) |
49 | ssize_t reiserfs_getxattr(struct dentry *dentry, const char *name, | 48 | ssize_t reiserfs_getxattr(struct dentry *dentry, const char *name, |
50 | void *buffer, size_t size); | 49 | void *buffer, size_t size); |
@@ -104,11 +103,6 @@ static inline void reiserfs_read_unlock_xattr_i(struct inode *inode) | |||
104 | up_read(&REISERFS_I(inode)->xattr_sem); | 103 | up_read(&REISERFS_I(inode)->xattr_sem); |
105 | } | 104 | } |
106 | 105 | ||
107 | static inline void reiserfs_mark_inode_private(struct inode *inode) | ||
108 | { | ||
109 | inode->i_flags |= S_PRIVATE; | ||
110 | } | ||
111 | |||
112 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) | 106 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) |
113 | { | 107 | { |
114 | init_rwsem(&REISERFS_I(inode)->xattr_sem); | 108 | init_rwsem(&REISERFS_I(inode)->xattr_sem); |
@@ -116,8 +110,6 @@ static inline void reiserfs_init_xattr_rwsem(struct inode *inode) | |||
116 | 110 | ||
117 | #else | 111 | #else |
118 | 112 | ||
119 | #define is_reiserfs_priv_object(inode) 0 | ||
120 | #define reiserfs_mark_inode_private(inode) do {;} while(0) | ||
121 | #define reiserfs_getxattr NULL | 113 | #define reiserfs_getxattr NULL |
122 | #define reiserfs_setxattr NULL | 114 | #define reiserfs_setxattr NULL |
123 | #define reiserfs_listxattr NULL | 115 | #define reiserfs_listxattr NULL |