diff options
Diffstat (limited to 'include/linux/reiserfs_xattr.h')
-rw-r--r-- | include/linux/reiserfs_xattr.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/include/linux/reiserfs_xattr.h b/include/linux/reiserfs_xattr.h index 58f32ba7f5a0..13cdd5e1cb60 100644 --- a/include/linux/reiserfs_xattr.h +++ b/include/linux/reiserfs_xattr.h | |||
@@ -43,6 +43,12 @@ struct reiserfs_xattr_handler { | |||
43 | struct list_head handlers; | 43 | struct list_head handlers; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | int reiserfs_xattr_register_handlers(void) __init; | ||
47 | void reiserfs_xattr_unregister_handlers(void); | ||
48 | int reiserfs_xattr_init(struct super_block *sb, int mount_flags); | ||
49 | int reiserfs_delete_xattrs(struct inode *inode); | ||
50 | int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs); | ||
51 | |||
46 | #ifdef CONFIG_REISERFS_FS_XATTR | 52 | #ifdef CONFIG_REISERFS_FS_XATTR |
47 | #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir) | 53 | #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir) |
48 | ssize_t reiserfs_getxattr(struct dentry *dentry, const char *name, | 54 | ssize_t reiserfs_getxattr(struct dentry *dentry, const char *name, |
@@ -51,9 +57,6 @@ int reiserfs_setxattr(struct dentry *dentry, const char *name, | |||
51 | const void *value, size_t size, int flags); | 57 | const void *value, size_t size, int flags); |
52 | ssize_t reiserfs_listxattr(struct dentry *dentry, char *buffer, size_t size); | 58 | ssize_t reiserfs_listxattr(struct dentry *dentry, char *buffer, size_t size); |
53 | int reiserfs_removexattr(struct dentry *dentry, const char *name); | 59 | int reiserfs_removexattr(struct dentry *dentry, const char *name); |
54 | int reiserfs_delete_xattrs(struct inode *inode); | ||
55 | int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs); | ||
56 | int reiserfs_xattr_init(struct super_block *sb, int mount_flags); | ||
57 | int reiserfs_permission(struct inode *inode, int mask); | 60 | int reiserfs_permission(struct inode *inode, int mask); |
58 | 61 | ||
59 | int reiserfs_xattr_del(struct inode *, const char *); | 62 | int reiserfs_xattr_del(struct inode *, const char *); |
@@ -64,9 +67,6 @@ extern struct reiserfs_xattr_handler user_handler; | |||
64 | extern struct reiserfs_xattr_handler trusted_handler; | 67 | extern struct reiserfs_xattr_handler trusted_handler; |
65 | extern struct reiserfs_xattr_handler security_handler; | 68 | extern struct reiserfs_xattr_handler security_handler; |
66 | 69 | ||
67 | int reiserfs_xattr_register_handlers(void) __init; | ||
68 | void reiserfs_xattr_unregister_handlers(void); | ||
69 | |||
70 | static inline void reiserfs_write_lock_xattrs(struct super_block *sb) | 70 | static inline void reiserfs_write_lock_xattrs(struct super_block *sb) |
71 | { | 71 | { |
72 | down_write(&REISERFS_XATTR_DIR_SEM(sb)); | 72 | down_write(&REISERFS_XATTR_DIR_SEM(sb)); |
@@ -121,23 +121,6 @@ static inline void reiserfs_init_xattr_rwsem(struct inode *inode) | |||
121 | 121 | ||
122 | #define reiserfs_permission NULL | 122 | #define reiserfs_permission NULL |
123 | 123 | ||
124 | #define reiserfs_xattr_register_handlers() 0 | ||
125 | #define reiserfs_xattr_unregister_handlers() | ||
126 | |||
127 | static inline int reiserfs_delete_xattrs(struct inode *inode) | ||
128 | { | ||
129 | return 0; | ||
130 | }; | ||
131 | static inline int reiserfs_chown_xattrs(struct inode *inode, | ||
132 | struct iattr *attrs) | ||
133 | { | ||
134 | return 0; | ||
135 | }; | ||
136 | static inline int reiserfs_xattr_init(struct super_block *sb, int mount_flags) | ||
137 | { | ||
138 | sb->s_flags = (sb->s_flags & ~MS_POSIXACL); /* to be sure */ | ||
139 | return 0; | ||
140 | }; | ||
141 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) | 124 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) |
142 | { | 125 | { |
143 | } | 126 | } |