提交 a5a14de2 编写于 作者: D Dave Chinner 提交者: Dave Chinner

xfs: fix wrong errno from xfs_initxattrs

Signed-off-by: NDave Chinner <dchinner@redhat.com>
Reviewed-by: NJie Liu <jeff.liu@oracle.com>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 65149e3f
...@@ -72,7 +72,7 @@ xfs_initxattrs( ...@@ -72,7 +72,7 @@ xfs_initxattrs(
int error = 0; int error = 0;
for (xattr = xattr_array; xattr->name != NULL; xattr++) { for (xattr = xattr_array; xattr->name != NULL; xattr++) {
error = xfs_attr_set(ip, xattr->name, xattr->value, error = -xfs_attr_set(ip, xattr->name, xattr->value,
xattr->value_len, ATTR_SECURE); xattr->value_len, ATTR_SECURE);
if (error < 0) if (error < 0)
break; break;
...@@ -93,7 +93,7 @@ xfs_init_security( ...@@ -93,7 +93,7 @@ xfs_init_security(
struct inode *dir, struct inode *dir,
const struct qstr *qstr) const struct qstr *qstr)
{ {
return security_inode_init_security(inode, dir, qstr, return -security_inode_init_security(inode, dir, qstr,
&xfs_initxattrs, NULL); &xfs_initxattrs, NULL);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册