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.c | |
parent | ff5e165532a2eed87700649d03f91a612a58e92a (diff) |
Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code
Diffstat (limited to 'libbcachefs/xattr.c')
-rw-r--r-- | libbcachefs/xattr.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libbcachefs/xattr.c b/libbcachefs/xattr.c index 81e942e..79a98f7 100644 --- a/libbcachefs/xattr.c +++ b/libbcachefs/xattr.c @@ -86,8 +86,7 @@ const struct bch_hash_desc bch2_xattr_hash_desc = { .cmp_bkey = xattr_cmp_bkey, }; -static const char *bch2_xattr_invalid(const struct bch_fs *c, - struct bkey_s_c k) +const char *bch2_xattr_invalid(const struct bch_fs *c, struct bkey_s_c k) { const struct xattr_handler *handler; struct bkey_s_c_xattr xattr; @@ -126,8 +125,8 @@ static const char *bch2_xattr_invalid(const struct bch_fs *c, } } -static void bch2_xattr_to_text(struct bch_fs *c, char *buf, - size_t size, struct bkey_s_c k) +void bch2_xattr_to_text(struct bch_fs *c, char *buf, + size_t size, struct bkey_s_c k) { const struct xattr_handler *handler; struct bkey_s_c_xattr xattr; @@ -159,11 +158,6 @@ static void bch2_xattr_to_text(struct bch_fs *c, char *buf, } } -const struct bkey_ops bch2_bkey_xattr_ops = { - .key_invalid = bch2_xattr_invalid, - .val_to_text = bch2_xattr_to_text, -}; - int bch2_xattr_get(struct bch_fs *c, struct bch_inode_info *inode, const char *name, void *buffer, size_t size, int type) { |