* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
OBD_CONNECT_IBITS |
OBD_CONNECT_MDS_MDS |
OBD_CONNECT_FID |
- OBD_CONNECT_AT;
+ OBD_CONNECT_AT |
+ OBD_CONNECT_FULL20;
rc = obd_connect(env, &desc->cl_exp, mdc, &mdc->obd_uuid, ocd, NULL);
OBD_FREE_PTR(ocd);
if (rc) {
mc->mc_md_dev.md_ops = &mdc_md_ops;
ld = mdc2lu_dev(mc);
ld->ld_ops = &mdc_lu_ops;
- sema_init(&mc->mc_fid_sem, 1);
+ cfs_sema_init(&mc->mc_fid_sem, 1);
}
RETURN (ld);
{
struct mdc_device *mc = lu2mdc_dev(ld);
- LASSERTF(atomic_read(&ld->ld_ref) == 0,
- "Refcount = %i\n", atomic_read(&ld->ld_ref));
- LASSERT(list_empty(&mc->mc_linkage));
+ LASSERTF(cfs_atomic_read(&ld->ld_ref) == 0,
+ "Refcount = %i\n", cfs_atomic_read(&ld->ld_ref));
+ LASSERT(cfs_list_empty(&mc->mc_linkage));
md_device_fini(&mc->mc_md_dev);
OBD_FREE_PTR(mc);
return NULL;