bcachefs: Add missing bch2_err_class() to fileattr_set()

Make sure we return a standard error code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2025-06-19 16:51:32 -04:00
parent b2e2bed119
commit bb378314ce

View File

@@ -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 = {