diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-04-10 19:19:09 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-04-10 19:23:58 -0400 |
commit | c598d91dcb0c7e95abdacb2711898ae14ab52ca1 (patch) | |
tree | 645b7838f62826547ea0c830738a88061827c698 /libbcachefs/xattr.h | |
parent | ff5e165532a2eed87700649d03f91a612a58e92a (diff) |
Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code
Diffstat (limited to 'libbcachefs/xattr.h')
-rw-r--r-- | libbcachefs/xattr.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libbcachefs/xattr.h b/libbcachefs/xattr.h index 9c815a2d..a58e7e30 100644 --- a/libbcachefs/xattr.h +++ b/libbcachefs/xattr.h @@ -4,7 +4,14 @@ #include "str_hash.h" extern const struct bch_hash_desc bch2_xattr_hash_desc; -extern const struct bkey_ops bch2_bkey_xattr_ops; + +const char *bch2_xattr_invalid(const struct bch_fs *, struct bkey_s_c); +void bch2_xattr_to_text(struct bch_fs *, char *, size_t, struct bkey_s_c); + +#define bch2_bkey_xattr_ops (struct bkey_ops) { \ + .key_invalid = bch2_xattr_invalid, \ + .val_to_text = bch2_xattr_to_text, \ +} struct dentry; struct xattr_handler; |