[PATCH 5/9] xfs: fix wrong errno from xfs_initxattrs
Jeff Liu
jeff.liu at oracle.com
Tue May 13 07:51:04 CDT 2014
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner at redhat.com>
> ---
> fs/xfs/xfs_iops.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
> index 301ecbf..adfb18e 100644
> --- a/fs/xfs/xfs_iops.c
> +++ b/fs/xfs/xfs_iops.c
> @@ -72,8 +72,8 @@ xfs_initxattrs(
> int error = 0;
>
> for (xattr = xattr_array; xattr->name != NULL; xattr++) {
> - error = xfs_attr_set(ip, xattr->name, xattr->value,
> - xattr->value_len, ATTR_SECURE);
> + error = -xfs_attr_set(ip, xattr->name, xattr->value,
> + xattr->value_len, ATTR_SECURE);
> if (error < 0)
> break;
> }
> @@ -93,8 +93,8 @@ xfs_init_security(
> struct inode *dir,
> const struct qstr *qstr)
> {
> - return security_inode_init_security(inode, dir, qstr,
> - &xfs_initxattrs, NULL);
> + return -security_inode_init_security(inode, dir, qstr,
> + &xfs_initxattrs, NULL);
> }
>
> static void
>
Reviewed-by: Jie Liu <jeff.liu at oracle.com>
Cheers,
-Jeff
More information about the xfs
mailing list