diff options
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index d34896cfb19f..7922509b5b2b 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -436,7 +436,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry) | |||
436 | spin_lock(&active->d_lock); | 436 | spin_lock(&active->d_lock); |
437 | 437 | ||
438 | /* Already gone? */ | 438 | /* Already gone? */ |
439 | if (atomic_read(&active->d_count) == 0) | 439 | if (active->d_count == 0) |
440 | goto next; | 440 | goto next; |
441 | 441 | ||
442 | qstr = &active->d_name; | 442 | qstr = &active->d_name; |
@@ -452,7 +452,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry) | |||
452 | goto next; | 452 | goto next; |
453 | 453 | ||
454 | if (d_unhashed(active)) { | 454 | if (d_unhashed(active)) { |
455 | dget(active); | 455 | dget_dlock(active); |
456 | spin_unlock(&active->d_lock); | 456 | spin_unlock(&active->d_lock); |
457 | spin_unlock(&sbi->lookup_lock); | 457 | spin_unlock(&sbi->lookup_lock); |
458 | spin_unlock(&dcache_lock); | 458 | spin_unlock(&dcache_lock); |
@@ -507,7 +507,7 @@ static struct dentry *autofs4_lookup_expiring(struct dentry *dentry) | |||
507 | goto next; | 507 | goto next; |
508 | 508 | ||
509 | if (d_unhashed(expiring)) { | 509 | if (d_unhashed(expiring)) { |
510 | dget(expiring); | 510 | dget_dlock(expiring); |
511 | spin_unlock(&expiring->d_lock); | 511 | spin_unlock(&expiring->d_lock); |
512 | spin_unlock(&sbi->lookup_lock); | 512 | spin_unlock(&sbi->lookup_lock); |
513 | spin_unlock(&dcache_lock); | 513 | spin_unlock(&dcache_lock); |