Skip to content

Commit bb37831

Browse files
author
Kent Overstreet
committed
bcachefs: Add missing bch2_err_class() to fileattr_set()
Make sure we return a standard error code. Signed-off-by: Kent Overstreet <[email protected]>
1 parent b2e2bed commit bb37831

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/bcachefs/fs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,8 @@ static int bch2_fileattr_set(struct mnt_idmap *idmap,
17321732
bch2_write_inode(c, inode, fssetxattr_inode_update_fn, &s,
17331733
ATTR_CTIME);
17341734
mutex_unlock(&inode->ei_update_lock);
1735-
return ret;
1735+
1736+
return bch2_err_class(ret);
17361737
}
17371738

17381739
static const struct file_operations bch_file_operations = {

0 commit comments

Comments
 (0)