locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[sfrench/cifs-2.6.git] / fs / fs_pin.c
index e747b3d720eeb1594737ed8b7a7c0ef15fd5166b..2d07f292b62567c952e39e3a79113ab45824882b 100644 (file)
@@ -78,7 +78,7 @@ void mnt_pin_kill(struct mount *m)
        while (1) {
                struct hlist_node *p;
                rcu_read_lock();
-               p = ACCESS_ONCE(m->mnt_pins.first);
+               p = READ_ONCE(m->mnt_pins.first);
                if (!p) {
                        rcu_read_unlock();
                        break;
@@ -92,7 +92,7 @@ void group_pin_kill(struct hlist_head *p)
        while (1) {
                struct hlist_node *q;
                rcu_read_lock();
-               q = ACCESS_ONCE(p->first);
+               q = READ_ONCE(p->first);
                if (!q) {
                        rcu_read_unlock();
                        break;