git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get rid of passing mangled flag to do_last()
[safe/jmp/linux-2.6]
/
include
/
linux
/
dcache.h
diff --git
a/include/linux/dcache.h
b/include/linux/dcache.h
index
72ce2ae
..
30b93b2
100644
(file)
--- a/
include/linux/dcache.h
+++ b/
include/linux/dcache.h
@@
-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;