]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/autofs4/root.c
helper for reading ->d_count
[karo-tx-linux.git] / fs / autofs4 / root.c
index ca8e55548d9893eebf82e4261e79dc84c3b06409..92ef341ba0cf35c1bd1b5f001b9b39068979f6ff 100644 (file)
@@ -179,7 +179,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry)
                spin_lock(&active->d_lock);
 
                /* Already gone? */
-               if (active->d_count == 0)
+               if (!d_count(active))
                        goto next;
 
                qstr = &active->d_name;