Whamcloud - gitweb
LU-3963 libcfs: convert llite/lmv/lod/lov cfs_atomic primitive
[fs/lustre-release.git] / lustre / nodemap / nodemap_handler.c
index ae814d4..48b3b8e 100644 (file)
@@ -88,7 +88,7 @@ static void nodemap_getref(struct lu_nodemap *nodemap)
 void nodemap_putref(struct lu_nodemap *nodemap)
 {
        LASSERT(nodemap != NULL);
-       LASSERT(cfs_atomic_read(&nodemap->nm_refcount) > 0);
+       LASSERT(atomic_read(&nodemap->nm_refcount) > 0);
 
        if (atomic_dec_and_test(&nodemap->nm_refcount))
                nodemap_destroy(nodemap);