Commit bb378314 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Add missing bch2_err_class() to fileattr_set()



Make sure we return a standard error code.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b2e2bed1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 = {