X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosc%2Fosc_object.c;h=28be07e1b65fde5ad639c5677f2b6b9244fa6c8c;hb=d750891e478804bc495ffa075d771d1816369958;hp=42fc154a1e98564bb2293c43baa5e4c7d6ea9d1f;hpb=b15f3875f46eec3c5186fe6b84cf2cda7ceb8518;p=fs%2Flustre-release.git diff --git a/lustre/osc/osc_object.c b/lustre/osc/osc_object.c index 42fc154..28be07e 100644 --- a/lustre/osc/osc_object.c +++ b/lustre/osc/osc_object.c @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -78,9 +78,9 @@ static int osc_object_init(const struct lu_env *env, struct lu_object *obj, osc->oo_oinfo = cconf->u.coc_oinfo; #ifdef INVARIANT_CHECK - mutex_init(&osc->oo_debug_mutex); + cfs_mutex_init(&osc->oo_debug_mutex); #endif - spin_lock_init(&osc->oo_seatbelt); + cfs_spin_lock_init(&osc->oo_seatbelt); for (i = 0; i < CRT_NR; ++i) CFS_INIT_LIST_HEAD(&osc->oo_inflight[i]); return 0; @@ -92,7 +92,7 @@ static void osc_object_free(const struct lu_env *env, struct lu_object *obj) int i; for (i = 0; i < CRT_NR; ++i) - LASSERT(list_empty(&osc->oo_inflight[i])); + LASSERT(cfs_list_empty(&osc->oo_inflight[i])); lu_object_fini(obj); OBD_SLAB_FREE_PTR(osc, osc_object_kmem); @@ -117,7 +117,7 @@ static int osc_object_print(const struct lu_env *env, void *cookie, (*p)(env, cookie, "id: "LPU64" gr: "LPU64" " "idx: %d gen: %d kms_valid: %u kms "LPU64" " "rc: %d force_sync: %d min_xid: "LPU64" ", - oinfo->loi_id, oinfo->loi_gr, oinfo->loi_ost_idx, + oinfo->loi_id, oinfo->loi_seq, oinfo->loi_ost_idx, oinfo->loi_ost_gen, oinfo->loi_kms_valid, oinfo->loi_kms, ar->ar_rc, ar->ar_force_sync, ar->ar_min_xid); osc_lvb_print(env, cookie, p, &oinfo->loi_lvb);