diff options
Diffstat (limited to 'include/linux/reiserfs_xattr.h')
-rw-r--r-- | include/linux/reiserfs_xattr.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/include/linux/reiserfs_xattr.h b/include/linux/reiserfs_xattr.h index 3bd154fd56e9..958fcaca0e8b 100644 --- a/include/linux/reiserfs_xattr.h +++ b/include/linux/reiserfs_xattr.h | |||
@@ -29,20 +29,6 @@ struct iattr; | |||
29 | struct super_block; | 29 | struct super_block; |
30 | struct nameidata; | 30 | struct nameidata; |
31 | 31 | ||
32 | struct reiserfs_xattr_handler { | ||
33 | char *prefix; | ||
34 | int (*init) (void); | ||
35 | void (*exit) (void); | ||
36 | int (*get) (struct inode * inode, const char *name, void *buffer, | ||
37 | size_t size); | ||
38 | int (*set) (struct inode * inode, const char *name, const void *buffer, | ||
39 | size_t size, int flags); | ||
40 | int (*del) (struct inode * inode, const char *name); | ||
41 | int (*list) (struct inode * inode, const char *name, int namelen, | ||
42 | char *out); | ||
43 | struct list_head handlers; | ||
44 | }; | ||
45 | |||
46 | int reiserfs_xattr_register_handlers(void) __init; | 32 | int reiserfs_xattr_register_handlers(void) __init; |
47 | void reiserfs_xattr_unregister_handlers(void); | 33 | void reiserfs_xattr_unregister_handlers(void); |
48 | int reiserfs_xattr_init(struct super_block *sb, int mount_flags); | 34 | int reiserfs_xattr_init(struct super_block *sb, int mount_flags); |
@@ -59,13 +45,14 @@ ssize_t reiserfs_listxattr(struct dentry *dentry, char *buffer, size_t size); | |||
59 | int reiserfs_removexattr(struct dentry *dentry, const char *name); | 45 | int reiserfs_removexattr(struct dentry *dentry, const char *name); |
60 | int reiserfs_permission(struct inode *inode, int mask); | 46 | int reiserfs_permission(struct inode *inode, int mask); |
61 | 47 | ||
62 | int reiserfs_xattr_del(struct inode *, const char *); | 48 | int reiserfs_xattr_get(struct inode *, const char *, void *, size_t); |
63 | int reiserfs_xattr_get(const struct inode *, const char *, void *, size_t); | 49 | int __reiserfs_xattr_set(struct inode *, const char *, const void *, |
50 | size_t, int); | ||
64 | int reiserfs_xattr_set(struct inode *, const char *, const void *, size_t, int); | 51 | int reiserfs_xattr_set(struct inode *, const char *, const void *, size_t, int); |
65 | 52 | ||
66 | extern struct reiserfs_xattr_handler user_handler; | 53 | extern struct xattr_handler reiserfs_xattr_user_handler; |
67 | extern struct reiserfs_xattr_handler trusted_handler; | 54 | extern struct xattr_handler reiserfs_xattr_trusted_handler; |
68 | extern struct reiserfs_xattr_handler security_handler; | 55 | extern struct xattr_handler reiserfs_xattr_security_handler; |
69 | 56 | ||
70 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) | 57 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) |
71 | { | 58 | { |