1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#ifndef __XATTR__
20#define __XATTR__
21
22#include <linux/xattr.h>
23
24extern const struct xattr_handler *btrfs_xattr_handlers[];
25
26extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name,
27 void *buffer, size_t size);
28extern int __btrfs_setxattr(struct btrfs_trans_handle *trans,
29 struct inode *inode, const char *name,
30 const void *value, size_t size, int flags);
31extern int btrfs_setxattr(struct dentry *dentry, const char *name,
32 const void *value, size_t size, int flags);
33extern int btrfs_removexattr(struct dentry *dentry, const char *name);
34
35extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
36 struct inode *inode, struct inode *dir,
37 const struct qstr *qstr);
38
39#endif
40