X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fost%2Flproc_ost.c;h=e07405a93e0ff6014d1dc653458df29c8e760c91;hb=ccaeafd40baad0b8e8d0ab544a18f2f5b0b5f9a6;hp=38f951838f7599fe103c026a312fce527120a4cd;hpb=113303973ec9f8484eb2355a1a6ef3c4c7fd6a56;p=fs%2Flustre-release.git diff --git a/lustre/ost/lproc_ost.c b/lustre/ost/lproc_ost.c index 38f9518..e07405a9 100644 --- a/lustre/ost/lproc_ost.c +++ b/lustre/ost/lproc_ost.c @@ -30,16 +30,22 @@ #include "ost_internal.h" #ifdef LPROCFS -static struct lprocfs_vars lprocfs_obd_vars[] = { +static struct lprocfs_vars lprocfs_ost_obd_vars[] = { { "uuid", lprocfs_rd_uuid, 0, 0 }, { 0 } }; -static struct lprocfs_vars lprocfs_module_vars[] = { +static struct lprocfs_vars lprocfs_ost_module_vars[] = { { "num_refs", lprocfs_rd_numrefs, 0, 0 }, { 0 } }; +void lprocfs_ost_init_vars(struct lprocfs_static_vars *lvars) +{ + lvars->module_vars = lprocfs_ost_module_vars; + lvars->obd_vars = lprocfs_ost_obd_vars; +} + void ost_print_req(void *seq_file, struct ptlrpc_request *req) { @@ -73,6 +79,4 @@ ost_print_req(void *seq_file, struct ptlrpc_request *req) LBUG(); } } - -LPROCFS_INIT_VARS(ost, lprocfs_module_vars, lprocfs_obd_vars) #endif /* LPROCFS */