* Copyright 2008 Sun Microsystems, Inc. All rights reserved
* Use is subject to license terms.
*
- * Copyright (c) 2011,2012 Whamcloud, Inc.
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
sprintf(str, "%smaxage=%d", PARAM_OSP, val);
lustre_cfg_bufs_set_string(&bufs, 1, str);
lcfg = lustre_cfg_new(LCFG_PARAM, &bufs);
- lod_getref(lod);
+ lod_getref(&lod->lod_ost_descs);
lod_foreach_ost(lod, i) {
next = &OST_TGT(lod,i)->ltd_ost->dd_lu_dev;
rc = next->ld_ops->ldo_process_config(NULL, next, lcfg);
if (rc)
CERROR("can't set maxage on #%d: %d\n", i, rc);
}
- lod_putref(lod);
+ lod_putref(lod, &lod->lod_ost_descs);
lustre_cfg_free(lcfg);
return count;
LASSERT(dev != NULL);
lod = lu2lod_dev(dev->obd_lu_dev);
- lod_getref(lod); /* released in lod_osts_seq_stop */
+ lod_getref(&lod->lod_ost_descs); /* released in lod_osts_seq_stop */
if (*pos >= lod->lod_ost_bitmap->size)
return NULL;
LASSERT(dev != NULL);
lod = lu2lod_dev(dev->obd_lu_dev);
- lod_putref(lod);
+ lod_putref(lod, &lod->lod_ost_descs);
}
static void *lod_osts_seq_next(struct seq_file *p, void *v, loff_t *pos)
};
static struct lprocfs_vars lprocfs_lod_osd_vars[] = {
- { "blocksize", lprocfs_osd_rd_blksize, 0, 0 },
- { "kbytestotal", lprocfs_osd_rd_kbytestotal, 0, 0 },
- { "kbytesfree", lprocfs_osd_rd_kbytesfree, 0, 0 },
- { "kbytesavail", lprocfs_osd_rd_kbytesavail, 0, 0 },
- { "filestotal", lprocfs_osd_rd_filestotal, 0, 0 },
- { "filesfree", lprocfs_osd_rd_filesfree, 0, 0 },
+ { "blocksize", lprocfs_dt_rd_blksize, 0, 0 },
+ { "kbytestotal", lprocfs_dt_rd_kbytestotal, 0, 0 },
+ { "kbytesfree", lprocfs_dt_rd_kbytesfree, 0, 0 },
+ { "kbytesavail", lprocfs_dt_rd_kbytesavail, 0, 0 },
+ { "filestotal", lprocfs_dt_rd_filestotal, 0, 0 },
+ { "filesfree", lprocfs_dt_rd_filesfree, 0, 0 },
{ 0 }
};