mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 12:21:15 -04:00
btrfs: rename error to ret in btrfs_may_delete()
Unify naming of return value to the preferred way. Reviewed-by: Daniel Vacek <neelx@suse.com>yy Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -841,7 +841,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir,
|
||||
static int btrfs_may_delete(struct mnt_idmap *idmap,
|
||||
struct inode *dir, struct dentry *victim, int isdir)
|
||||
{
|
||||
int error;
|
||||
int ret;
|
||||
|
||||
if (d_really_is_negative(victim))
|
||||
return -ENOENT;
|
||||
@@ -851,9 +851,9 @@ static int btrfs_may_delete(struct mnt_idmap *idmap,
|
||||
return -EINVAL;
|
||||
audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE);
|
||||
|
||||
error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC);
|
||||
if (error)
|
||||
return error;
|
||||
ret = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (IS_APPEND(dir))
|
||||
return -EPERM;
|
||||
if (check_sticky(idmap, dir, d_inode(victim)) ||
|
||||
|
||||
Reference in New Issue
Block a user