|
@@ -179,7 +179,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry)
|
|
spin_lock(&active->d_lock);
|
|
spin_lock(&active->d_lock);
|
|
|
|
|
|
/* Already gone? */
|
|
/* Already gone? */
|
|
- if (!d_count(active))
|
|
|
|
|
|
+ if ((int) d_count(active) <= 0)
|
|
goto next;
|
|
goto next;
|
|
|
|
|
|
qstr = &active->d_name;
|
|
qstr = &active->d_name;
|
|
@@ -230,7 +230,7 @@ static struct dentry *autofs4_lookup_expiring(struct dentry *dentry)
|
|
|
|
|
|
spin_lock(&expiring->d_lock);
|
|
spin_lock(&expiring->d_lock);
|
|
|
|
|
|
- /* Bad luck, we've already been dentry_iput */
|
|
|
|
|
|
+ /* We've already been dentry_iput or unlinked */
|
|
if (!expiring->d_inode)
|
|
if (!expiring->d_inode)
|
|
goto next;
|
|
goto next;
|
|
|
|
|