}
EXPORT_SYMBOL(sptlrpc_lprocfs_cliobd_attach);
-static struct lprocfs_vars sptlrpc_lprocfs_vars[] = {
- { "encrypt_page_pools", sptlrpc_proc_read_enc_pool, NULL, NULL },
- { NULL }
+LPROC_SEQ_FOPS_RO(sptlrpc_proc_enc_pool);
+static struct lprocfs_seq_vars sptlrpc_lprocfs_vars[] = {
+ { .name = "encrypt_page_pools",
+ .fops = &sptlrpc_proc_enc_pool_fops },
+ { NULL }
};
int sptlrpc_lproc_init(void)
{
- int rc;
-
- LASSERT(sptlrpc_proc_root == NULL);
-
- sptlrpc_proc_root = lprocfs_register("sptlrpc", proc_lustre_root,
- sptlrpc_lprocfs_vars, NULL);
- if (IS_ERR(sptlrpc_proc_root)) {
- rc = PTR_ERR(sptlrpc_proc_root);
- sptlrpc_proc_root = NULL;
- return rc;
- }
- return 0;
+ int rc;
+
+ LASSERT(sptlrpc_proc_root == NULL);
+
+ sptlrpc_proc_root = lprocfs_seq_register("sptlrpc", proc_lustre_root,
+ sptlrpc_lprocfs_vars, NULL);
+ if (IS_ERR(sptlrpc_proc_root)) {
+ rc = PTR_ERR(sptlrpc_proc_root);
+ sptlrpc_proc_root = NULL;
+ return rc;
+ }
+ return 0;
}
void sptlrpc_lproc_fini(void)