1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2002, 2003 Cluster File Systems, Inc.
5 * Author: Hariharan Thantry <thantry@users.sourceforge.net>
7 * This file is part of Lustre, http://www.lustre.org.
9 * Lustre is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU General Public
11 * License as published by the Free Software Foundation.
13 * Lustre is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Lustre; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 # define EXPORT_SYMTAB
26 #define DEBUG_SUBSYSTEM S_CLASS
29 # include <linux/config.h>
30 # include <linux/module.h>
31 # include <linux/version.h>
32 # include <linux/slab.h>
33 # include <linux/types.h>
34 # if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
35 # include <asm/statfs.h>
37 # include <linux/seq_file.h>
38 #else /* __KERNEL__ */
39 # include <liblustre.h>
42 #include <linux/obd_class.h>
43 #include <linux/lprocfs_status.h>
44 #include <linux/lustre_fsfilt.h>
46 #if defined(LPROCFS) && defined(__KERNEL__)
48 struct proc_dir_entry *lprocfs_srch(struct proc_dir_entry *head,
51 struct proc_dir_entry *temp;
57 while (temp != NULL) {
58 if (strcmp(temp->name, name) == 0)
66 /* lprocfs API calls */
68 int lprocfs_add_vars(struct proc_dir_entry *root, struct lprocfs_vars *list,
71 if (root == NULL || list == NULL)
74 while (list->name != NULL) {
75 struct proc_dir_entry *cur_root, *proc;
76 char *pathcopy, *cur, *next, pathbuf[64];
77 int pathsize = strlen(list->name) + 1;
82 /* need copy of path for strsep */
83 if (strlen(list->name) > sizeof(pathbuf) - 1) {
84 OBD_ALLOC(pathcopy, pathsize);
92 strcpy(pathcopy, list->name);
94 while (cur_root != NULL && (cur = strsep(&next, "/"))) {
95 if (*cur =='\0') /* skip double/trailing "/" */
98 proc = lprocfs_srch(cur_root, cur);
99 CDEBUG(D_OTHER, "cur_root=%s, cur=%s, next=%s, (%s)\n",
100 cur_root->name, cur, next,
101 (proc ? "exists" : "new"));
103 cur_root = (proc ? proc :
104 proc_mkdir(cur, cur_root));
105 } else if (proc == NULL) {
109 if (list->write_fptr)
111 proc = create_proc_entry(cur, mode, cur_root);
115 if (pathcopy != pathbuf)
116 OBD_FREE(pathcopy, pathsize);
118 if (cur_root == NULL || proc == NULL) {
119 CERROR("LprocFS: No memory to create /proc entry %s",
124 proc->read_proc = list->read_fptr;
125 proc->write_proc = list->write_fptr;
126 proc->data = (list->data ? list->data : data);
132 void lprocfs_remove(struct proc_dir_entry *root)
134 struct proc_dir_entry *temp = root;
135 struct proc_dir_entry *rm_entry;
136 struct proc_dir_entry *parent;
138 LASSERT(root != NULL);
139 parent = root->parent;
140 LASSERT(parent != NULL);
143 while (temp->subdir != NULL)
148 remove_proc_entry(rm_entry->name, rm_entry->parent);
154 struct proc_dir_entry *lprocfs_register(const char *name,
155 struct proc_dir_entry *parent,
156 struct lprocfs_vars *list, void *data)
158 struct proc_dir_entry *newchild;
160 newchild = lprocfs_srch(parent, name);
161 if (newchild != NULL) {
162 CERROR(" Lproc: Attempting to register %s more than once \n",
164 return ERR_PTR(-EALREADY);
167 newchild = proc_mkdir(name, parent);
168 if (newchild != NULL && list != NULL) {
169 int rc = lprocfs_add_vars(newchild, list, data);
171 lprocfs_remove(newchild);
178 /* Generic callbacks */
180 int lprocfs_rd_u64(char *page, char **start, off_t off,
181 int count, int *eof, void *data)
183 LASSERT(data != NULL);
185 return snprintf(page, count, LPU64"\n", *(__u64 *)data);
188 int lprocfs_rd_uuid(char *page, char **start, off_t off, int count,
189 int *eof, void *data)
191 struct obd_device *dev = (struct obd_device*)data;
193 LASSERT(dev != NULL);
195 return snprintf(page, count, "%s\n", dev->obd_uuid.uuid);
198 int lprocfs_rd_name(char *page, char **start, off_t off, int count,
199 int *eof, void* data)
201 struct obd_device *dev = (struct obd_device *)data;
203 LASSERT(dev != NULL);
204 LASSERT(dev->obd_name != NULL);
206 return snprintf(page, count, "%s\n", dev->obd_name);
209 int lprocfs_rd_fstype(char *page, char **start, off_t off, int count, int *eof,
212 struct obd_device *obd = (struct obd_device *)data;
214 LASSERT(obd != NULL);
215 LASSERT(obd->obd_fsops != NULL);
216 LASSERT(obd->obd_fsops->fs_type != NULL);
217 return snprintf(page, count, "%s\n", obd->obd_fsops->fs_type);
220 int lprocfs_rd_blksize(char *page, char **start, off_t off, int count,
221 int *eof, void *data)
223 struct obd_statfs osfs;
224 int rc = obd_statfs(data, &osfs, jiffies - HZ);
227 rc = snprintf(page, count, "%u\n", osfs.os_bsize);
232 int lprocfs_rd_kbytestotal(char *page, char **start, off_t off, int count,
233 int *eof, void *data)
235 struct obd_statfs osfs;
236 int rc = obd_statfs(data, &osfs, jiffies - HZ);
238 __u32 blk_size = osfs.os_bsize >> 10;
239 __u64 result = osfs.os_blocks;
241 while (blk_size >>= 1)
245 rc = snprintf(page, count, LPU64"\n", result);
250 int lprocfs_rd_kbytesfree(char *page, char **start, off_t off, int count,
251 int *eof, void *data)
253 struct obd_statfs osfs;
254 int rc = obd_statfs(data, &osfs, jiffies - HZ);
256 __u32 blk_size = osfs.os_bsize >> 10;
257 __u64 result = osfs.os_bfree;
259 while (blk_size >>= 1)
263 rc = snprintf(page, count, LPU64"\n", result);
268 int lprocfs_rd_filestotal(char *page, char **start, off_t off, int count,
269 int *eof, void *data)
271 struct obd_statfs osfs;
272 int rc = obd_statfs(data, &osfs, jiffies - HZ);
275 rc = snprintf(page, count, LPU64"\n", osfs.os_files);
281 int lprocfs_rd_filesfree(char *page, char **start, off_t off, int count,
282 int *eof, void *data)
284 struct obd_statfs osfs;
285 int rc = obd_statfs(data, &osfs, jiffies - HZ);
288 rc = snprintf(page, count, LPU64"\n", osfs.os_ffree);
293 int lprocfs_rd_filegroups(char *page, char **start, off_t off, int count,
294 int *eof, void *data)
297 return snprintf(page, count, "unimplemented\n");
300 int lprocfs_rd_server_uuid(char *page, char **start, off_t off, int count,
301 int *eof, void *data)
303 struct obd_device *obd = (struct obd_device *)data;
304 struct obd_import *imp;
305 char *imp_state_name = NULL;
307 LASSERT(obd != NULL);
308 imp = obd->u.cli.cl_import;
309 imp_state_name = ptlrpc_import_state_name(imp->imp_state);
311 return snprintf(page, count, "%s\t%s\n",
312 imp->imp_target_uuid.uuid, imp_state_name);
315 int lprocfs_rd_conn_uuid(char *page, char **start, off_t off, int count,
316 int *eof, void *data)
318 struct obd_device *obd = (struct obd_device*)data;
319 struct ptlrpc_connection *conn;
321 LASSERT(obd != NULL);
322 conn = obd->u.cli.cl_import->imp_connection;
323 LASSERT(conn != NULL);
325 return snprintf(page, count, "%s\n", conn->c_remote_uuid.uuid);
328 int lprocfs_rd_numrefs(char *page, char **start, off_t off, int count,
329 int *eof, void *data)
331 struct obd_type *class = (struct obd_type*) data;
333 LASSERT(class != NULL);
335 return snprintf(page, count, "%d\n", class->typ_refcnt);
338 int lprocfs_obd_attach(struct obd_device *dev, struct lprocfs_vars *list)
342 LASSERT(dev != NULL);
343 LASSERT(dev->obd_type != NULL);
344 LASSERT(dev->obd_type->typ_procroot != NULL);
346 dev->obd_proc_entry = lprocfs_register(dev->obd_name,
347 dev->obd_type->typ_procroot,
349 if (IS_ERR(dev->obd_proc_entry)) {
350 rc = PTR_ERR(dev->obd_proc_entry);
351 dev->obd_proc_entry = NULL;
356 int lprocfs_obd_detach(struct obd_device *dev)
358 if (dev && dev->obd_proc_entry) {
359 lprocfs_remove(dev->obd_proc_entry);
360 dev->obd_proc_entry = NULL;
365 struct lprocfs_stats *lprocfs_alloc_stats(unsigned int num)
367 struct lprocfs_stats *stats;
368 struct lprocfs_percpu *percpu;
369 unsigned int percpusize;
375 OBD_ALLOC(stats, offsetof(typeof(*stats), ls_percpu[num_online_cpus()]));
379 percpusize = L1_CACHE_ALIGN(offsetof(typeof(*percpu), lp_cntr[num]));
380 stats->ls_percpu_size = num_online_cpus() * percpusize;
381 OBD_ALLOC(stats->ls_percpu[0], stats->ls_percpu_size);
382 if (stats->ls_percpu[0] == NULL) {
383 OBD_FREE(stats, offsetof(typeof(*stats),
384 ls_percpu[num_online_cpus()]));
389 for (i = 1; i < num_online_cpus(); i++)
390 stats->ls_percpu[i] = (void *)(stats->ls_percpu[i - 1]) +
396 void lprocfs_free_stats(struct lprocfs_stats *stats)
398 if (stats->ls_num == 0)
401 OBD_FREE(stats->ls_percpu[0], stats->ls_percpu_size);
402 OBD_FREE(stats, offsetof(typeof(*stats), ls_percpu[num_online_cpus()]));
405 /* Reset counter under lock */
406 int lprocfs_counter_write(struct file *file, const char *buffer,
407 unsigned long count, void *data)
413 static void *lprocfs_stats_seq_start(struct seq_file *p, loff_t *pos)
415 struct lprocfs_stats *stats = p->private;
416 /* return 1st cpu location */
417 return (*pos >= stats->ls_num) ? NULL :
418 &(stats->ls_percpu[0]->lp_cntr[*pos]);
421 static void lprocfs_stats_seq_stop(struct seq_file *p, void *v)
425 static void *lprocfs_stats_seq_next(struct seq_file *p, void *v, loff_t *pos)
427 struct lprocfs_stats *stats = p->private;
429 return (*pos >= stats->ls_num) ? NULL :
430 &(stats->ls_percpu[0]->lp_cntr[*pos]);
433 /* seq file export of one lprocfs counter */
434 static int lprocfs_stats_seq_show(struct seq_file *p, void *v)
436 struct lprocfs_stats *stats = p->private;
437 struct lprocfs_counter *cntr = v;
438 struct lprocfs_counter t, ret = { .lc_min = ~(__u64)0 };
441 if (cntr == &(stats->ls_percpu[0])->lp_cntr[0]) {
443 do_gettimeofday(&now);
444 rc = seq_printf(p, "%-25s %lu.%lu secs.usecs\n",
445 "snapshot_time", now.tv_sec, now.tv_usec);
449 idx = cntr - &(stats->ls_percpu[0])->lp_cntr[0];
451 for (i = 0; i < num_online_cpus(); i++) {
452 struct lprocfs_counter *percpu_cntr =
453 &(stats->ls_percpu[i])->lp_cntr[idx];
457 centry = atomic_read(&percpu_cntr->lc_cntl.la_entry);
458 t.lc_count = percpu_cntr->lc_count;
459 t.lc_sum = percpu_cntr->lc_sum;
460 t.lc_min = percpu_cntr->lc_min;
461 t.lc_max = percpu_cntr->lc_max;
462 t.lc_sumsquare = percpu_cntr->lc_sumsquare;
463 } while (centry != atomic_read(&percpu_cntr->lc_cntl.la_entry) &&
464 centry != atomic_read(&percpu_cntr->lc_cntl.la_exit));
465 ret.lc_count += t.lc_count;
466 ret.lc_sum += t.lc_sum;
467 if (t.lc_min < ret.lc_min)
468 ret.lc_min = t.lc_min;
469 if (t.lc_max > ret.lc_max)
470 ret.lc_max = t.lc_max;
471 ret.lc_sumsquare += t.lc_sumsquare;
474 rc = seq_printf(p, "%-25s "LPU64" samples [%s]", cntr->lc_name,
475 ret.lc_count, cntr->lc_units);
479 if ((cntr->lc_config & LPROCFS_CNTR_AVGMINMAX) && (ret.lc_count > 0)) {
480 rc = seq_printf(p, " "LPU64" "LPU64" "LPU64,
481 ret.lc_min, ret.lc_max, ret.lc_sum);
484 if (cntr->lc_config & LPROCFS_CNTR_STDDEV)
485 rc = seq_printf(p, " "LPU64, ret.lc_sumsquare);
489 rc = seq_printf(p, "\n");
491 return (rc < 0) ? rc : 0;
494 struct seq_operations lprocfs_stats_seq_sops = {
495 start: lprocfs_stats_seq_start,
496 stop: lprocfs_stats_seq_stop,
497 next: lprocfs_stats_seq_next,
498 show: lprocfs_stats_seq_show,
501 static int lprocfs_stats_seq_open(struct inode *inode, struct file *file)
503 struct proc_dir_entry *dp = PDE(inode);
504 struct seq_file *seq;
507 rc = seq_open(file, &lprocfs_stats_seq_sops);
510 seq = file->private_data;
511 seq->private = dp->data;
515 struct file_operations lprocfs_stats_seq_fops = {
516 open: lprocfs_stats_seq_open,
519 release: seq_release,
522 int lprocfs_register_stats(struct proc_dir_entry *root, const char *name,
523 struct lprocfs_stats *stats)
525 struct proc_dir_entry *entry;
526 LASSERT(root != NULL);
528 entry = create_proc_entry(name, 0444, root);
531 entry->proc_fops = &lprocfs_stats_seq_fops;
532 entry->data = (void *)stats;
533 entry->write_proc = lprocfs_counter_write;
537 void lprocfs_counter_init(struct lprocfs_stats *stats, int index,
538 unsigned conf, const char *name, const char *units)
540 struct lprocfs_counter *c;
543 LASSERT(stats != NULL);
544 for (i = 0; i < num_online_cpus(); i++) {
545 c = &(stats->ls_percpu[i]->lp_cntr[index]);
547 c->lc_min = ~(__u64)0;
552 EXPORT_SYMBOL(lprocfs_counter_init);
554 #define LPROCFS_OBD_OP_INIT(base, stats, op) \
556 unsigned int coffset = base + OBD_COUNTER_OFFSET(op); \
557 LASSERT(coffset < stats->ls_num); \
558 lprocfs_counter_init(stats, coffset, 0, #op, "reqs"); \
561 int lprocfs_alloc_obd_stats(struct obd_device *obd, unsigned num_private_stats)
563 struct lprocfs_stats *stats;
564 unsigned int num_stats;
567 LASSERT(obd->obd_stats == NULL);
568 LASSERT(obd->obd_proc_entry != NULL);
569 LASSERT(obd->obd_cntr_base == 0);
571 num_stats = 1 + OBD_COUNTER_OFFSET(notify) +
573 stats = lprocfs_alloc_stats(num_stats);
577 LPROCFS_OBD_OP_INIT(num_private_stats, stats, iocontrol);
578 LPROCFS_OBD_OP_INIT(num_private_stats, stats, get_info);
579 LPROCFS_OBD_OP_INIT(num_private_stats, stats, set_info);
580 LPROCFS_OBD_OP_INIT(num_private_stats, stats, attach);
581 LPROCFS_OBD_OP_INIT(num_private_stats, stats, detach);
582 LPROCFS_OBD_OP_INIT(num_private_stats, stats, setup);
583 LPROCFS_OBD_OP_INIT(num_private_stats, stats, precleanup);
584 LPROCFS_OBD_OP_INIT(num_private_stats, stats, cleanup);
585 LPROCFS_OBD_OP_INIT(num_private_stats, stats, postrecov);
586 LPROCFS_OBD_OP_INIT(num_private_stats, stats, connect);
587 LPROCFS_OBD_OP_INIT(num_private_stats, stats, disconnect);
588 LPROCFS_OBD_OP_INIT(num_private_stats, stats, statfs);
589 LPROCFS_OBD_OP_INIT(num_private_stats, stats, packmd);
590 LPROCFS_OBD_OP_INIT(num_private_stats, stats, unpackmd);
591 LPROCFS_OBD_OP_INIT(num_private_stats, stats, preallocate);
592 LPROCFS_OBD_OP_INIT(num_private_stats, stats, create);
593 LPROCFS_OBD_OP_INIT(num_private_stats, stats, destroy);
594 LPROCFS_OBD_OP_INIT(num_private_stats, stats, setattr);
595 LPROCFS_OBD_OP_INIT(num_private_stats, stats, getattr);
596 LPROCFS_OBD_OP_INIT(num_private_stats, stats, getattr_async);
597 LPROCFS_OBD_OP_INIT(num_private_stats, stats, brw);
598 LPROCFS_OBD_OP_INIT(num_private_stats, stats, brw_async);
599 LPROCFS_OBD_OP_INIT(num_private_stats, stats, prep_async_page);
600 LPROCFS_OBD_OP_INIT(num_private_stats, stats, queue_async_io);
601 LPROCFS_OBD_OP_INIT(num_private_stats, stats, set_async_flags);
602 LPROCFS_OBD_OP_INIT(num_private_stats, stats, queue_sync_io);
603 LPROCFS_OBD_OP_INIT(num_private_stats, stats, trigger_sync_io);
604 LPROCFS_OBD_OP_INIT(num_private_stats, stats, teardown_async_page);
605 LPROCFS_OBD_OP_INIT(num_private_stats, stats, punch);
606 LPROCFS_OBD_OP_INIT(num_private_stats, stats, sync);
607 LPROCFS_OBD_OP_INIT(num_private_stats, stats, migrate);
608 LPROCFS_OBD_OP_INIT(num_private_stats, stats, copy);
609 LPROCFS_OBD_OP_INIT(num_private_stats, stats, iterate);
610 LPROCFS_OBD_OP_INIT(num_private_stats, stats, preprw);
611 LPROCFS_OBD_OP_INIT(num_private_stats, stats, commitrw);
612 LPROCFS_OBD_OP_INIT(num_private_stats, stats, enqueue);
613 LPROCFS_OBD_OP_INIT(num_private_stats, stats, match);
614 LPROCFS_OBD_OP_INIT(num_private_stats, stats, change_cbdata);
615 LPROCFS_OBD_OP_INIT(num_private_stats, stats, cancel);
616 LPROCFS_OBD_OP_INIT(num_private_stats, stats, cancel_unused);
617 LPROCFS_OBD_OP_INIT(num_private_stats, stats, san_preprw);
618 LPROCFS_OBD_OP_INIT(num_private_stats, stats, init_export);
619 LPROCFS_OBD_OP_INIT(num_private_stats, stats, destroy_export);
620 LPROCFS_OBD_OP_INIT(num_private_stats, stats, lock_contains);
621 LPROCFS_OBD_OP_INIT(num_private_stats, stats, llog_init);
622 LPROCFS_OBD_OP_INIT(num_private_stats, stats, llog_finish);
623 LPROCFS_OBD_OP_INIT(num_private_stats, stats, pin);
624 LPROCFS_OBD_OP_INIT(num_private_stats, stats, unpin);
625 LPROCFS_OBD_OP_INIT(num_private_stats, stats, invalidate_import);
626 LPROCFS_OBD_OP_INIT(num_private_stats, stats, notify);
628 for (i = num_private_stats; i < num_stats; i++) {
629 /* If this LBUGs, it is likely that an obd
630 * operation was added to struct obd_ops in
631 * <linux/obd.h>, and that the corresponding line item
632 * LPROCFS_OBD_OP_INIT(.., .., opname)
633 * is missing from the list above. */
634 if (stats->ls_percpu[0]->lp_cntr[i].lc_name == NULL) {
635 CERROR("Missing obd_stat initializer obd_op "
636 "operation at offset %d. Aborting.\n",
637 i - num_private_stats);
641 rc = lprocfs_register_stats(obd->obd_proc_entry, "stats", stats);
643 lprocfs_free_stats(stats);
645 obd->obd_stats = stats;
646 obd->obd_cntr_base = num_private_stats;
651 void lprocfs_free_obd_stats(struct obd_device *obd)
653 struct lprocfs_stats *stats = obd->obd_stats;
656 obd->obd_stats = NULL;
657 lprocfs_free_stats(stats);
661 int lprocfs_write_helper(const char *buffer, unsigned long count,
664 char kernbuf[20], *end;
666 if (count > (sizeof(kernbuf) - 1))
669 if (copy_from_user(kernbuf, buffer, count))
672 kernbuf[count] = '\0';
674 *val = simple_strtol(kernbuf, &end, 0);
681 int lprocfs_write_u64_helper(const char *buffer, unsigned long count,
684 char kernbuf[22], *end;
686 if (count > (sizeof(kernbuf) - 1))
689 if (copy_from_user(kernbuf, buffer, count))
692 kernbuf[count] = '\0';
694 *val = simple_strtoull(kernbuf, &end, 0);
701 int lprocfs_obd_seq_create(struct obd_device *dev, char *name, mode_t mode,
702 struct file_operations *seq_fops, void *data)
704 struct proc_dir_entry *entry;
707 entry = create_proc_entry(name, mode, dev->obd_proc_entry);
710 entry->proc_fops = seq_fops;
715 EXPORT_SYMBOL(lprocfs_obd_seq_create);
717 void lprocfs_oh_tally(struct obd_histogram *oh, unsigned int value)
721 if (value >= OBD_HIST_MAX)
722 value = OBD_HIST_MAX - 1;
724 spin_lock_irqsave(&oh->oh_lock, flags);
725 oh->oh_buckets[value]++;
726 spin_unlock_irqrestore(&oh->oh_lock, flags);
728 EXPORT_SYMBOL(lprocfs_oh_tally);
730 void lprocfs_oh_tally_log2(struct obd_histogram *oh, unsigned int value)
734 for (val = 0; ((1 << val) < value) && (val <= OBD_HIST_MAX); val++)
737 lprocfs_oh_tally(oh, val);
739 EXPORT_SYMBOL(lprocfs_oh_tally_log2);
741 unsigned long lprocfs_oh_sum(struct obd_histogram *oh)
743 unsigned long ret = 0;
746 for (i = 0; i < OBD_HIST_MAX; i++)
747 ret += oh->oh_buckets[i];
750 EXPORT_SYMBOL(lprocfs_oh_sum);
752 void lprocfs_oh_clear(struct obd_histogram *oh)
755 spin_lock_irqsave(&oh->oh_lock, flags);
756 memset(oh->oh_buckets, 0, sizeof(oh->oh_buckets));
757 spin_unlock_irqrestore(&oh->oh_lock, flags);
759 EXPORT_SYMBOL(lprocfs_oh_clear);
763 EXPORT_SYMBOL(lprocfs_register);
764 EXPORT_SYMBOL(lprocfs_srch);
765 EXPORT_SYMBOL(lprocfs_remove);
766 EXPORT_SYMBOL(lprocfs_add_vars);
767 EXPORT_SYMBOL(lprocfs_obd_attach);
768 EXPORT_SYMBOL(lprocfs_obd_detach);
769 EXPORT_SYMBOL(lprocfs_alloc_stats);
770 EXPORT_SYMBOL(lprocfs_free_stats);
771 EXPORT_SYMBOL(lprocfs_register_stats);
772 EXPORT_SYMBOL(lprocfs_alloc_obd_stats);
773 EXPORT_SYMBOL(lprocfs_free_obd_stats);
775 EXPORT_SYMBOL(lprocfs_rd_u64);
776 EXPORT_SYMBOL(lprocfs_rd_uuid);
777 EXPORT_SYMBOL(lprocfs_rd_name);
778 EXPORT_SYMBOL(lprocfs_rd_fstype);
779 EXPORT_SYMBOL(lprocfs_rd_server_uuid);
780 EXPORT_SYMBOL(lprocfs_rd_conn_uuid);
781 EXPORT_SYMBOL(lprocfs_rd_numrefs);
783 EXPORT_SYMBOL(lprocfs_rd_blksize);
784 EXPORT_SYMBOL(lprocfs_rd_kbytestotal);
785 EXPORT_SYMBOL(lprocfs_rd_kbytesfree);
786 EXPORT_SYMBOL(lprocfs_rd_filestotal);
787 EXPORT_SYMBOL(lprocfs_rd_filesfree);
788 EXPORT_SYMBOL(lprocfs_rd_filegroups);
790 EXPORT_SYMBOL(lprocfs_write_helper);
791 EXPORT_SYMBOL(lprocfs_write_u64_helper);