Get rid of passing mangled flag to do_last()
[safe/jmp/linux-2.6] / include / linux / dcache.h
index 72ce2ae..30b93b2 100644 (file)
@@ -353,6 +353,11 @@ static inline int d_unhashed(struct dentry *dentry)
        return (dentry->d_flags & DCACHE_UNHASHED);
 }
 
+static inline int d_unlinked(struct dentry *dentry)
+{
+       return d_unhashed(dentry) && !IS_ROOT(dentry);
+}
+
 static inline struct dentry *dget_parent(struct dentry *dentry)
 {
        struct dentry *ret;