/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved
* Use is subject to license terms.
+ *
+ * Copyright (c) 2012, 2013, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
static int pool_proc_show(struct seq_file *s, void *v)
{
struct pool_iterator *iter = (struct pool_iterator *)v;
- struct lod_ost_desc *osc_desc;
+ struct lod_tgt_desc *osc_desc;
LASSERTF(iter->magic == POOL_IT_MAGIC, "%08X", iter->magic);
LASSERT(iter->pool != NULL);
if (rc)
GOTO(out_err, rc);
- memset(&(new_pool->pool_rr), 0, sizeof(struct lov_qos_rr));
+ memset(&new_pool->pool_rr, 0, sizeof(new_pool->pool_rr));
rc = lod_ost_pool_init(&new_pool->pool_rr.lqr_pool, 0);
if (rc)
GOTO(out_free_pool_obds, rc);
obd_str2uuid(&ost_uuid, ostname);
/* search ost in lod array */
- lod_getref(lod);
+ lod_getref(&lod->lod_ost_descs);
lod_foreach_ost(lod, idx) {
if (obd_uuid_equals(&ost_uuid, &OST_TGT(lod, idx)->ltd_uuid)) {
rc = 0;
EXIT;
out:
- lod_putref(lod);
+ lod_putref(lod, &lod->lod_ost_descs);
lod_pool_putref(pool);
return rc;
}
obd_str2uuid(&ost_uuid, ostname);
- lod_getref(lod);
+ lod_getref(&lod->lod_ost_descs);
/* search ost in lod array, to get index */
cfs_foreach_bit(lod->lod_ost_bitmap, idx) {
if (obd_uuid_equals(&ost_uuid, &OST_TGT(lod, idx)->ltd_uuid)) {
EXIT;
out:
- lod_putref(lod);
+ lod_putref(lod, &lod->lod_ost_descs);
lod_pool_putref(pool);
return rc;
}