diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-09 20:12:58 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:06 +0200 |
commit | ca630f1d3767c20026b33ba1603017e5c8e9da5a (patch) | |
tree | 39936f9a6f16992a63713667474565b12e3eb8b1 /fs/bcachefs/xattr.c | |
parent | bcachefs: Fix try_decrease_writepoints() (diff) | |
download | linux-ca630f1d3767c20026b33ba1603017e5c8e9da5a.tar.xz linux-ca630f1d3767c20026b33ba1603017e5c8e9da5a.zip |
bcachefs: Kill bch2_xattr_get()
Inline it into the only caller
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/xattr.c')
-rw-r--r-- | fs/bcachefs/xattr.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/bcachefs/xattr.c b/fs/bcachefs/xattr.c index 867cc6878248..43904c0ec9ba 100644 --- a/fs/bcachefs/xattr.c +++ b/fs/bcachefs/xattr.c @@ -166,13 +166,6 @@ err1: return ret < 0 && bch2_err_matches(ret, ENOENT) ? -ENODATA : ret; } -int bch2_xattr_get(struct bch_fs *c, struct bch_inode_info *inode, - const char *name, void *buffer, size_t size, int type) -{ - return bch2_trans_do(c, NULL, NULL, 0, - bch2_xattr_get_trans(&trans, inode, name, buffer, size, type)); -} - int bch2_xattr_set(struct btree_trans *trans, subvol_inum inum, const struct bch_hash_info *hash_info, const char *name, const void *value, size_t size, @@ -365,9 +358,9 @@ static int bch2_xattr_get_handler(const struct xattr_handler *handler, { struct bch_inode_info *inode = to_bch_ei(vinode); struct bch_fs *c = inode->v.i_sb->s_fs_info; - int ret; + int ret = bch2_trans_do(c, NULL, NULL, 0, + bch2_xattr_get_trans(&trans, inode, name, buffer, size, handler->flags)); - ret = bch2_xattr_get(c, inode, name, buffer, size, handler->flags); return bch2_err_class(ret); } |