Updates for kernel 2.6.38
[lttng-modules.git] / ltt-ascii.c
index b020fedb39a62ea1771e51d52006e2b6ed7db70d..ad128e8bcd4708bd3288f4f0184bd0549ea1b77e 100644 (file)
@@ -543,7 +543,7 @@ void ltt_ascii_remove(struct ltt_chan *chan)
         * Wait for every reference to the dentry to be gone,
         * except us.
         */
-       while (atomic_read(&dentry->d_count) != 1)
+       while (ACCESS_ONCE(dentry->d_count) != 1)
                msleep(100);
        dput(dentry);
 }
This page took 0.023476 seconds and 4 git commands to generate.