1 #ifndef _BCACHEFS_XATTR_H
2 #define _BCACHEFS_XATTR_H
6 extern const struct bch_hash_desc bch2_xattr_hash_desc;
8 const char *bch2_xattr_invalid(const struct bch_fs *, struct bkey_s_c);
9 void bch2_xattr_to_text(struct bch_fs *, char *, size_t, struct bkey_s_c);
11 #define bch2_bkey_xattr_ops (struct bkey_ops) { \
12 .key_invalid = bch2_xattr_invalid, \
13 .val_to_text = bch2_xattr_to_text, \
19 struct bch_inode_info;
21 int bch2_xattr_get(struct bch_fs *, struct bch_inode_info *,
22 const char *, void *, size_t, int);
23 int __bch2_xattr_set(struct bch_fs *, u64, const struct bch_hash_info *,
24 const char *, const void *, size_t, int, int, u64 *);
25 int bch2_xattr_set(struct bch_fs *, struct bch_inode_info *,
26 const char *, const void *, size_t, int, int);
27 ssize_t bch2_xattr_list(struct dentry *, char *, size_t);
29 extern const struct xattr_handler *bch2_xattr_handlers[];
31 #endif /* _BCACHEFS_XATTR_H */