X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fvvp_lock.c;h=54d99f00ded19cc6d0a5eac67f058f448b8bc267;hp=51096dac9a35d616f8a2433ba28dda367d340f3d;hb=69ddb2e08ecb0226ae820b69932ec4eb424f481a;hpb=46f58aa1268643033bf72afaed7653c924e90681 diff --git a/lustre/llite/vvp_lock.c b/lustre/llite/vvp_lock.c index 51096da..54d99f0 100644 --- a/lustre/llite/vvp_lock.c +++ b/lustre/llite/vvp_lock.c @@ -62,12 +62,12 @@ * ordered within themselves by weights assigned from other layers. */ static unsigned long vvp_lock_weigh(const struct lu_env *env, - const struct cl_lock_slice *slice) + const struct cl_lock_slice *slice) { - struct ccc_object *cob = cl2ccc(slice->cls_obj); + struct ccc_object *cob = cl2ccc(slice->cls_obj); - ENTRY; - RETURN(cfs_atomic_read(&cob->cob_mmap_cnt) > 0 ? ~0UL >> 2 : 0); + ENTRY; + RETURN(atomic_read(&cob->cob_mmap_cnt) > 0 ? ~0UL >> 2 : 0); } static const struct cl_lock_operations vvp_lock_ops = {