git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vfs: get rid of insane dentry hashing rules
[pandora-kernel.git]
/
include
/
linux
/
dcache.h
diff --git
a/include/linux/dcache.h
b/include/linux/dcache.h
index
f2afed4
..
19d90a5
100644
(file)
--- a/
include/linux/dcache.h
+++ b/
include/linux/dcache.h
@@
-197,7
+197,7
@@
struct dentry_operations {
* typically using d_splice_alias. */
#define DCACHE_REFERENCED 0x0008 /* Recently used, don't discard. */
* typically using d_splice_alias. */
#define DCACHE_REFERENCED 0x0008 /* Recently used, don't discard. */
-#define DCACHE_
UNHASHED 0x0010
+#define DCACHE_
RCUACCESS 0x0010 /* Entry has ever been RCU-visible */
#define DCACHE_INOTIFY_PARENT_WATCHED 0x0020
/* Parent inode is watched by inotify */
#define DCACHE_INOTIFY_PARENT_WATCHED 0x0020
/* Parent inode is watched by inotify */
@@
-384,7
+384,7
@@
extern struct dentry *dget_parent(struct dentry *dentry);
static inline int d_unhashed(struct dentry *dentry)
{
static inline int d_unhashed(struct dentry *dentry)
{
- return
(dentry->d_flags & DCACHE_UNHASHED
);
+ return
hlist_bl_unhashed(&dentry->d_hash
);
}
static inline int d_unlinked(struct dentry *dentry)
}
static inline int d_unlinked(struct dentry *dentry)