summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorWill Deacon2017-10-24 12:22:48 +0200
committerIngo Molnar2017-10-24 13:17:33 +0200
commit506458efaf153c1ea480591c5602a5a3ba5a3b76 (patch)
treec4ac0a89bf23993036720ec8883fff0740bf9019 /fs/overlayfs/ovl_entry.h
parentlocking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE() (diff)
downloadkernel-qcow2-linux-506458efaf153c1ea480591c5602a5a3ba5a3b76.tar.gz
kernel-qcow2-linux-506458efaf153c1ea480591c5602a5a3ba5a3b76.tar.xz
kernel-qcow2-linux-506458efaf153c1ea480591c5602a5a3ba5a3b76.zip
locking/barriers: Convert users of lockless_dereference() to READ_ONCE()
READ_ONCE() now has an implicit smp_read_barrier_depends() call, so it can be used instead of lockless_dereference() without any change in semantics. Signed-off-by: Will Deacon <will.deacon@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1508840570-22169-4-git-send-email-will.deacon@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 25d9b5adcd42..36b49bd09264 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -77,5 +77,5 @@ static inline struct ovl_inode *OVL_I(struct inode *inode)
static inline struct dentry *ovl_upperdentry_dereference(struct ovl_inode *oi)
{
- return lockless_dereference(oi->__upperdentry);
+ return READ_ONCE(oi->__upperdentry);
}