* GPL HEADER END
*/
/*
- * Copyright (c) 2011, 2012, Intel, Inc.
+ * Copyright (c) 2012, Intel Corporation.
* Use is subject to license terms.
*
- * Author: Johann Lombardi <johann@whamcloud.com>
- * Author: Niu Yawei <niu@whamcloud.com>
+ * Author: Johann Lombardi <johann.lombardi@intel.com>
+ * Author: Niu Yawei <yawei.niu@intel.com>
*/
#ifndef EXPORT_SYMTAB
LASSERT(!lqe_is_master(lqe));
/* initialize slave parameters */
- cfs_rwlock_init(&lqe->lqe_lock);
+ rwlock_init(&lqe->lqe_lock);
memset(&lqe->lqe_lockh, 0, sizeof(lqe->lqe_lockh));
lqe->lqe_pending_write = 0;
lqe->lqe_pending_req = 0;
lqe->lqe_enforced = true;
break;
default:
- LQUOTA_ERROR(lqe, "failed to read quota entry from global index"
- "copy, rc:%d", rc);
+ LQUOTA_ERROR(lqe, "failed to read quota entry from global "
+ "index copy, rc:%d", rc);
return rc;
}
lqe->lqe_granted = qti->qti_slv_rec.qsr_granted;
break;
default:
- LQUOTA_ERROR(lqe, "failed to read quota entry from slave index"
- "copy, rc:%d", rc);
+ LQUOTA_ERROR(lqe, "failed to read quota entry from slave "
+ "index copy, rc:%d", rc);
return rc;
}
if (rc)
GOTO(out, rc);
- /* write lock lquota entry */
if (global) {
/* Update record in global index copy */
struct lquota_glb_rec *glb_rec = (struct lquota_glb_rec *)rec;
glb_rec->qbr_softlimit) ? true : false;
LQUOTA_DEBUG(lqe, "updating global index hardlimit: "LPU64", "
- "softlimit: "LPU64"\n", glb_rec->qbr_hardlimit,
+ "softlimit: "LPU64, glb_rec->qbr_hardlimit,
glb_rec->qbr_softlimit);
} else {
struct lquota_slv_rec *slv_rec = (struct lquota_slv_rec *)rec;