aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-11-29 01:11:24 -0500
committerIngo Molnar <mingo@kernel.org>2017-11-29 01:11:24 -0500
commit4fc31ba13d052c2933bf91095c063cf9a39effd0 (patch)
treebeabb73c2fe245e6541126732895da62e55bc8ee /include/linux/dcache.h
parent0e18dd12064e07519f7cbff4149ca7fff620cbed (diff)
parentb29c6ef7bb1257853c1e31616d84f55e561cf631 (diff)
Merge branch 'linus' into perf/urgent, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/dcache.h')
-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 f05a659cdf34..65cd8ab60b7a 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -520,7 +520,7 @@ static inline struct inode *d_inode(const struct dentry *dentry)
520} 520}
521 521
522/** 522/**
523 * d_inode_rcu - Get the actual inode of this dentry with ACCESS_ONCE() 523 * d_inode_rcu - Get the actual inode of this dentry with READ_ONCE()
524 * @dentry: The dentry to query 524 * @dentry: The dentry to query
525 * 525 *
526 * This is the helper normal filesystems should use to get at their own inodes 526 * This is the helper normal filesystems should use to get at their own inodes
@@ -528,7 +528,7 @@ static inline struct inode *d_inode(const struct dentry *dentry)
528 */ 528 */
529static inline struct inode *d_inode_rcu(const struct dentry *dentry) 529static inline struct inode *d_inode_rcu(const struct dentry *dentry)
530{ 530{
531 return ACCESS_ONCE(dentry->d_inode); 531 return READ_ONCE(dentry->d_inode);
532} 532}
533 533
534/** 534/**