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>
This commit is contained in:
committed by
Linus Torvalds
parent
010f5a21a3
commit
6dfede6963
@@ -44,7 +44,6 @@ struct reiserfs_xattr_handler {
|
||||
};
|
||||
|
||||
#ifdef CONFIG_REISERFS_FS_XATTR
|
||||
#define is_reiserfs_priv_object(inode) IS_PRIVATE(inode)
|
||||
#define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir)
|
||||
ssize_t reiserfs_getxattr(struct dentry *dentry, const char *name,
|
||||
void *buffer, size_t size);
|
||||
@@ -104,11 +103,6 @@ static inline void reiserfs_read_unlock_xattr_i(struct inode *inode)
|
||||
up_read(&REISERFS_I(inode)->xattr_sem);
|
||||
}
|
||||
|
||||
static inline void reiserfs_mark_inode_private(struct inode *inode)
|
||||
{
|
||||
inode->i_flags |= S_PRIVATE;
|
||||
}
|
||||
|
||||
static inline void reiserfs_init_xattr_rwsem(struct inode *inode)
|
||||
{
|
||||
init_rwsem(&REISERFS_I(inode)->xattr_sem);
|
||||
@@ -116,8 +110,6 @@ static inline void reiserfs_init_xattr_rwsem(struct inode *inode)
|
||||
|
||||
#else
|
||||
|
||||
#define is_reiserfs_priv_object(inode) 0
|
||||
#define reiserfs_mark_inode_private(inode) do {;} while(0)
|
||||
#define reiserfs_getxattr NULL
|
||||
#define reiserfs_setxattr NULL
|
||||
#define reiserfs_listxattr NULL
|
||||
|
||||
Reference in New Issue
Block a user