X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_lproc.c;h=7bf5e335f0def9cf6ecdad85b48c6f2a5b497450;hb=fb36d989168ea1794c8c0abb387982f857ed647f;hp=b2a05fa2f6997cd48dc0643a446496bb13b230ff;hpb=0d92e17afa7ff7024d3e18268a2e1a89cba4d5bd;p=fs%2Flustre-release.git diff --git a/lustre/mdd/mdd_lproc.c b/lustre/mdd/mdd_lproc.c index b2a05fa..7bf5e33 100644 --- a/lustre/mdd/mdd_lproc.c +++ b/lustre/mdd/mdd_lproc.c @@ -27,7 +27,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, 2013, Intel Corporation. + * Copyright (c) 2012, 2014, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -262,7 +262,7 @@ static int mdd_lfsck_namespace_seq_show(struct seq_file *m, void *data) LASSERT(mdd != NULL); - return lfsck_dump(m, mdd->mdd_bottom, LT_NAMESPACE); + return lfsck_dump(m, mdd->mdd_bottom, LFSCK_TYPE_NAMESPACE); } LPROC_SEQ_FOPS_RO(mdd_lfsck_namespace); @@ -272,11 +272,11 @@ static int mdd_lfsck_layout_seq_show(struct seq_file *m, void *data) LASSERT(mdd != NULL); - return lfsck_dump(m, mdd->mdd_bottom, LT_LAYOUT); + return lfsck_dump(m, mdd->mdd_bottom, LFSCK_TYPE_LAYOUT); } LPROC_SEQ_FOPS_RO(mdd_lfsck_layout); -static struct lprocfs_seq_vars lprocfs_mdd_obd_vars[] = { +static struct lprocfs_vars lprocfs_mdd_obd_vars[] = { { .name = "atime_diff", .fops = &mdd_atime_diff_fops }, { .name = "changelog_mask", @@ -293,12 +293,12 @@ static struct lprocfs_seq_vars lprocfs_mdd_obd_vars[] = { .fops = &mdd_lfsck_namespace_fops }, { .name = "lfsck_layout", .fops = &mdd_lfsck_layout_fops }, - { 0 } + { NULL } }; int mdd_procfs_init(struct mdd_device *mdd, const char *name) { - struct obd_device *obd = class_name2obd(name); + struct obd_device *obd = mdd2obd_dev(mdd); struct obd_type *type; int rc; ENTRY; @@ -313,8 +313,8 @@ int mdd_procfs_init(struct mdd_device *mdd, const char *name) /* Find the type procroot and add the proc entry for this device */ obd->obd_vars = lprocfs_mdd_obd_vars; - mdd->mdd_proc_entry = lprocfs_seq_register(name, type->typ_procroot, - obd->obd_vars, mdd); + mdd->mdd_proc_entry = lprocfs_register(name, type->typ_procroot, + obd->obd_vars, mdd); if (IS_ERR(mdd->mdd_proc_entry)) { rc = PTR_ERR(mdd->mdd_proc_entry); CERROR("Error %d setting up lprocfs for %s\n",