diff options
author | Seraphime Kirkovski <kirkseraph@gmail.com> | 2016-12-26 10:26:34 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-02-20 12:16:05 +0100 |
commit | 52953d55917e45fdf62d5e6cb37c61c32dc8d373 (patch) | |
tree | f04b22dbde1a43b0e0e211fc5ce105cba3853e53 /fs/ceph/dir.c | |
parent | ceph: pass parent inode info to ceph_encode_dentry_release if we have it (diff) | |
download | linux-52953d55917e45fdf62d5e6cb37c61c32dc8d373.tar.xz linux-52953d55917e45fdf62d5e6cb37c61c32dc8d373.zip |
ceph: cleanup ACCESS_ONCE -> READ_ONCE
This removes the uses of ACCESS_ONCE in favor of READ_ONCE
Signed-off-by: Seraphime Kirkovski <kirkseraph@gmail.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 8ab1fdf0bd49..d4385563b70a 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -1194,7 +1194,7 @@ static int ceph_d_revalidate(struct dentry *dentry, unsigned int flags) struct inode *dir; if (flags & LOOKUP_RCU) { - parent = ACCESS_ONCE(dentry->d_parent); + parent = READ_ONCE(dentry->d_parent); dir = d_inode_rcu(parent); if (!dir) return -ECHILD; |