bcachefs: avoid returning private error code in bch2_xattr_bcachefs_set
authorHongbo Li <lihongbo22@huawei.com>
Fri, 1 Mar 2024 03:17:45 +0000 (11:17 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:26 +0000 (21:22 -0400)
commit7e23c1746b027ea6075816280a4e463a9399d9da
tree7041dcbd86f5729a09408b2a240309931f109cd9
parent7e64c86cdc6cee0db36eb983c62065c5bf71508b
bcachefs: avoid returning private error code in bch2_xattr_bcachefs_set

Avoid the private error code return to caller. The error code
should be transformed into genernal error code.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/xattr.c