mirror of
https://github.com/torvalds/linux
synced 2024-07-21 10:41:44 +00:00
btrfs: rename err to ret in btrfs_initxattrs()
Unify naming of return value to the preferred way. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f32f20e2bd
commit
c87b979d9f
|
@ -504,7 +504,7 @@ static int btrfs_initxattrs(struct inode *inode,
|
|||
const struct xattr *xattr;
|
||||
unsigned int nofs_flag;
|
||||
char *name;
|
||||
int err = 0;
|
||||
int ret = 0;
|
||||
|
||||
/*
|
||||
* We're holding a transaction handle, so use a NOFS memory allocation
|
||||
|
@ -515,7 +515,7 @@ static int btrfs_initxattrs(struct inode *inode,
|
|||
name = kmalloc(XATTR_SECURITY_PREFIX_LEN +
|
||||
strlen(xattr->name) + 1, GFP_KERNEL);
|
||||
if (!name) {
|
||||
err = -ENOMEM;
|
||||
ret = -ENOMEM;
|
||||
break;
|
||||
}
|
||||
strcpy(name, XATTR_SECURITY_PREFIX);
|
||||
|
@ -524,14 +524,14 @@ static int btrfs_initxattrs(struct inode *inode,
|
|||
if (strcmp(name, XATTR_NAME_CAPS) == 0)
|
||||
clear_bit(BTRFS_INODE_NO_CAP_XATTR, &BTRFS_I(inode)->runtime_flags);
|
||||
|
||||
err = btrfs_setxattr(trans, inode, name, xattr->value,
|
||||
ret = btrfs_setxattr(trans, inode, name, xattr->value,
|
||||
xattr->value_len, 0);
|
||||
kfree(name);
|
||||
if (err < 0)
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
memalloc_nofs_restore(nofs_flag);
|
||||
return err;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
|
||||
|
|
Loading…
Reference in a new issue