bcachefs: Add missing bch2_err_class() to fileattr_set()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 19 Jun 2025 20:51:32 +0000 (16:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Jun 2025 04:29:03 +0000 (00:29 -0400)
Make sure we return a standard error code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c

index 3063a8ddc2dfae1852c9bfdea999beeece1a6510..db24a76563f823ecb3d1c79abc0ec6fc50666193 100644 (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 = {