X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flclient%2Flcommon_cl.c;h=f69dd874439b776d48f6bb2f121ffa21287c8806;hp=979d3deb631756da5ee6803ac95ba77cabae4d5c;hb=f87d9c7ef2030eaacf13834a1b7842e8b04d1320;hpb=7da33dc0ba361bedd274480890755a8d2691e65b diff --git a/lustre/lclient/lcommon_cl.c b/lustre/lclient/lcommon_cl.c index 979d3de..f69dd87 100644 --- a/lustre/lclient/lcommon_cl.c +++ b/lustre/lclient/lcommon_cl.c @@ -1220,7 +1220,7 @@ static void cl_object_put_last(struct lu_env *env, struct cl_object *obj) struct lu_object_header *header = obj->co_lu.lo_header; wait_queue_t waiter; - if (unlikely(cfs_atomic_read(&header->loh_ref) != 1)) { + if (unlikely(atomic_read(&header->loh_ref) != 1)) { struct lu_site *site = obj->co_lu.lo_dev->ld_site; struct lu_site_bkt_data *bkt; @@ -1231,7 +1231,7 @@ static void cl_object_put_last(struct lu_env *env, struct cl_object *obj) while (1) { set_current_state(TASK_UNINTERRUPTIBLE); - if (cfs_atomic_read(&header->loh_ref) == 1) + if (atomic_read(&header->loh_ref) == 1) break; waitq_wait(&waiter, TASK_UNINTERRUPTIBLE); }