Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176599
b: refs/heads/master
c: 90387c9
h: refs/heads/master
i:
  176597: 5dd4650
  176595: 018c837
  176591: ec933c0
v: v3
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Dec 16, 2009
1 parent d528cbb commit d1aaba9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa952eb26d4344fdad44c104f3c298d3130c53da
refs/heads/master: 90387c9c1d5787aeb7dfdfc90c8f8aeaeed7ad0e
20 changes: 10 additions & 10 deletions trunk/fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
{
struct autofs_sb_info *sbi;
struct autofs_info *ino;
struct dentry *expiring, *unhashed;
struct dentry *expiring, *active;
int oz_mode;

DPRINTK("name = %.*s",
Expand All @@ -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",
current->pid, task_pgrp_nr(current), sbi->catatonic, oz_mode);

unhashed = autofs4_lookup_active(sbi, dentry->d_parent, &dentry->d_name);
if (unhashed) {
dentry = unhashed;
active = autofs4_lookup_active(sbi, dentry->d_parent, &dentry->d_name);
if (active) {
dentry = active;
ino = autofs4_dentry_ino(dentry);
} else {
/*
Expand Down Expand Up @@ -600,8 +600,8 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
if (sigismember (sigset, SIGKILL) ||
sigismember (sigset, SIGQUIT) ||
sigismember (sigset, SIGINT)) {
if (unhashed)
dput(unhashed);
if (active)
dput(active);
return ERR_PTR(-ERESTARTNOINTR);
}
}
Expand Down Expand Up @@ -633,14 +633,14 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
else
dentry = ERR_PTR(-ENOENT);

if (unhashed)
dput(unhashed);
if (active)
dput(active);

return dentry;
}

if (unhashed)
return unhashed;
if (active)
return active;

return NULL;
}
Expand Down

0 comments on commit d1aaba9

Please sign in to comment.