summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-04-24 08:51:15 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-04-24 08:51:15 -0700
commit5dd12af05ca6b7d052c06a9ca4ff755fdfa25ae4 (patch)
tree15189e860b8fb4e20b1517c8ec2d2e145a2c0017 /include
parent8f7544682c488dfc4117b37ed10435bb2d3d8d73 (diff)
parentdea3667bc3c2a0521e8d8855e407a49d9d70028c (diff)
downloadlinux-5dd12af05ca6b7d052c06a9ca4ff755fdfa25ae4.tar.gz
Merge branch 'dcache-cleanup'
* dcache-cleanup:
  vfs: get rid of insane dentry hashing rules
Diffstat (limited to 'include')
-rw-r--r--include/linux/dcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index f2afed4fa945..19d90a55541d 100644
--- 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. */
-#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 */
 
@@ -384,7 +384,7 @@ extern struct dentry *dget_parent(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)