Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95676
b: refs/heads/master
c: afec570
h: refs/heads/master
v: v3
  • Loading branch information
Ian Kent authored and Linus Torvalds committed May 1, 2008
1 parent 89b9b0c commit d5119ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 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: c32e026efc1e1a4f9e36babebf123f2b88205b0b
refs/heads/master: afec570c32a0d116e3c68af583ed1d11110f12fc
24 changes: 11 additions & 13 deletions trunk/fs/autofs4/expire.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static struct dentry *autofs4_expire_indirect(struct super_block *sb,
/* Can we expire this guy */
if (autofs4_can_expire(dentry, timeout, do_now)) {
expired = dentry;
break;
goto found;
}
goto next;
}
Expand All @@ -352,7 +352,7 @@ static struct dentry *autofs4_expire_indirect(struct super_block *sb,
inf->flags |= AUTOFS_INF_EXPIRING;
spin_unlock(&sbi->fs_lock);
expired = dentry;
break;
goto found;
}
spin_unlock(&sbi->fs_lock);
/*
Expand All @@ -363,26 +363,24 @@ static struct dentry *autofs4_expire_indirect(struct super_block *sb,
expired = autofs4_check_leaves(mnt, dentry, timeout, do_now);
if (expired) {
dput(dentry);
break;
goto found;
}
}
next:
dput(dentry);
spin_lock(&dcache_lock);
next = next->next;
}

if (expired) {
DPRINTK("returning %p %.*s",
expired, (int)expired->d_name.len, expired->d_name.name);
spin_lock(&dcache_lock);
list_move(&expired->d_parent->d_subdirs, &expired->d_u.d_child);
spin_unlock(&dcache_lock);
return expired;
}
spin_unlock(&dcache_lock);

return NULL;

found:
DPRINTK("returning %p %.*s",
expired, (int)expired->d_name.len, expired->d_name.name);
spin_lock(&dcache_lock);
list_move(&expired->d_parent->d_subdirs, &expired->d_u.d_child);
spin_unlock(&dcache_lock);
return expired;
}

/* Perform an expiry operation */
Expand Down

0 comments on commit d5119ab

Please sign in to comment.