From: Kent Overstreet Date: Thu, 19 Jun 2025 20:51:32 +0000 (-0400) Subject: bcachefs: Add missing bch2_err_class() to fileattr_set() X-Git-Tag: v6.16-rc4~24^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb378314ceee4d181e26bfe180deca852ae80c5c;p=thirdparty%2Flinux.git bcachefs: Add missing bch2_err_class() to fileattr_set() Make sure we return a standard error code. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 3063a8ddc2df..db24a76563f8 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -1732,7 +1732,8 @@ static int bch2_fileattr_set(struct mnt_idmap *idmap, bch2_write_inode(c, inode, fssetxattr_inode_update_fn, &s, ATTR_CTIME); mutex_unlock(&inode->ei_update_lock); - return ret; + + return bch2_err_class(ret); } static const struct file_operations bch_file_operations = {