X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fcmm%2Fcmm_split.c;h=eb91f3f0e2e6d7dacb1200a3830026da62df491a;hb=c7515002525bb10ef51c2bb8e5dc23cfef7bc484;hp=44878760b3552c95d5ba08b7ca3ed57a390a0b6e;hpb=6fe18330660980fc4ec4fd4e960f5415e571a54e;p=fs%2Flustre-release.git diff --git a/lustre/cmm/cmm_split.c b/lustre/cmm/cmm_split.c index 4487876..eb91f3f 100644 --- a/lustre/cmm/cmm_split.c +++ b/lustre/cmm/cmm_split.c @@ -264,13 +264,13 @@ static int cmm_split_fid_alloc(const struct lu_env *env, LASSERT(cmm != NULL && mc != NULL && fid != NULL); - down(&mc->mc_fid_sem); + cfs_down(&mc->mc_fid_sem); /* Alloc new fid on @mc. */ rc = obd_fid_alloc(mc->mc_desc.cl_exp, fid, NULL); if (rc > 0) rc = 0; - up(&mc->mc_fid_sem); + cfs_up(&mc->mc_fid_sem); RETURN(rc); } @@ -346,7 +346,7 @@ static int cmm_split_slaves_create(const struct lu_env *env, slave_lmv->mea_magic = MEA_MAGIC_HASH_SEGMENT; slave_lmv->mea_count = 0; - list_for_each_entry_safe(mc, tmp, &cmm->cmm_targets, mc_linkage) { + cfs_list_for_each_entry_safe(mc, tmp, &cmm->cmm_targets, mc_linkage) { rc = cmm_split_slave_create(env, cmm, mc, &lmv->mea_ids[i], ma, slave_lmv, sizeof(*slave_lmv)); if (rc)