static int lprocfs_elc_seq_show(struct seq_file *m, void *v) { struct ldlm_namespace *ns = m->private; unsigned int supp = ns_connect_cancelset(ns); return lprocfs_rd_uint(m, &supp); }
static int lprocfs_rd_elc(char *page, char **start, off_t off, int count, int *eof, void *data) { struct ldlm_namespace *ns = data; unsigned int supp = ns_connect_cancelset(ns); return lprocfs_rd_uint(page, start, off, count, eof, &supp); }
static int lprocfs_lru_size_seq_show(struct seq_file *m, void *v) { struct ldlm_namespace *ns = m->private; __u32 *nr = &ns->ns_max_unused; if (ns_connect_lru_resize(ns)) nr = &ns->ns_nr_unused; return lprocfs_rd_uint(m, nr); }
static int lprocfs_rd_lru_size(char *page, char **start, off_t off, int count, int *eof, void *data) { struct ldlm_namespace *ns = data; __u32 *nr = &ns->ns_max_unused; if (ns_connect_lru_resize(ns)) nr = &ns->ns_nr_unused; return lprocfs_rd_uint(page, start, off, count, eof, nr); }