Commit f62a07a1 authored by Ian Kent's avatar Ian Kent Committed by james toy

Rename the variable unhashed to active in autofs4_lookup() to better

reflect its usage.
Signed-off-by: default avatarIan Kent <raven@themaw.net>
Cc: Sage Weil <sage@newdream.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Andreas Dilger <adilger@sun.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Yehuda Saheh <yehuda@newdream.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 845ce1e4
...@@ -514,7 +514,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s ...@@ -514,7 +514,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
{ {
struct autofs_sb_info *sbi; struct autofs_sb_info *sbi;
struct autofs_info *ino; struct autofs_info *ino;
struct dentry *expiring, *unhashed; struct dentry *expiring, *active;
int oz_mode; int oz_mode;
DPRINTK("name = %.*s", DPRINTK("name = %.*s",
...@@ -530,9 +530,9 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s ...@@ -530,9 +530,9 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
DPRINTK("pid = %u, pgrp = %u, catatonic = %d, oz_mode = %d", DPRINTK("pid = %u, pgrp = %u, catatonic = %d, oz_mode = %d",
current->pid, task_pgrp_nr(current), sbi->catatonic, oz_mode); current->pid, task_pgrp_nr(current), sbi->catatonic, oz_mode);
unhashed = autofs4_lookup_active(sbi, dentry->d_parent, &dentry->d_name); active = autofs4_lookup_active(sbi, dentry->d_parent, &dentry->d_name);
if (unhashed) { if (active) {
dentry = unhashed; dentry = active;
ino = autofs4_dentry_ino(dentry); ino = autofs4_dentry_ino(dentry);
} else { } else {
/* /*
...@@ -600,8 +600,8 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s ...@@ -600,8 +600,8 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
if (sigismember (sigset, SIGKILL) || if (sigismember (sigset, SIGKILL) ||
sigismember (sigset, SIGQUIT) || sigismember (sigset, SIGQUIT) ||
sigismember (sigset, SIGINT)) { sigismember (sigset, SIGINT)) {
if (unhashed) if (active)
dput(unhashed); dput(active);
return ERR_PTR(-ERESTARTNOINTR); return ERR_PTR(-ERESTARTNOINTR);
} }
} }
...@@ -633,14 +633,14 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s ...@@ -633,14 +633,14 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
else else
dentry = ERR_PTR(-ENOENT); dentry = ERR_PTR(-ENOENT);
if (unhashed) if (active)
dput(unhashed); dput(active);
return dentry; return dentry;
} }
if (unhashed) if (active)
return unhashed; return active;
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment