diff options
| author | Dave Chinner <dchinner@redhat.com> | 2014-05-15 09:22:21 +1000 | 
|---|---|---|
| committer | Dave Chinner <david@fromorbit.com> | 2014-05-15 09:22:21 +1000 | 
| commit | a5a14de22e8afd771775c7106b3b081c23bac783 (patch) | |
| tree | 243c305cd771a310a8c53de89e303c03521221c0 | |
| parent | 65149e3fab7f053396d09a429085f3071fa50825 (diff) | |
xfs: fix wrong errno from xfs_initxattrs
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
| -rw-r--r-- | fs/xfs/xfs_iops.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 301ecbfcc0be..adfb18e19992 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 | 
