if (lookup_flags & LOOKUP_REVAL)
return 0;
- if (!dentry_may_statahead(dir, dentry))
- return 1;
-
#ifndef HAVE_DCACHE_LOCK
if (lookup_flags & LOOKUP_RCU)
return -ECHILD;
#endif
- ll_statahead(dir, &dentry, dentry->d_inode == NULL);
+ if (dentry_may_statahead(dir, dentry))
+ ll_statahead(dir, &dentry, dentry->d_inode == NULL);
+
return 1;
}