X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ffld%2Flproc_fld.c;h=97bd3d5baebca7ac506980040c1f1fe5c8c71ada;hp=c68f3c431025d61829d2f8670d5c0c4ef9d55c01;hb=c50a9e2ae39df781598696dae4f33d60199a84dd;hpb=16b0909b8c0b4893774f3125f78dd7864c6129f5;ds=sidebyside diff --git a/lustre/fld/lproc_fld.c b/lustre/fld/lproc_fld.c index c68f3c4..97bd3d5 100644 --- a/lustre/fld/lproc_fld.c +++ b/lustre/fld/lproc_fld.c @@ -50,12 +50,8 @@ # include #endif -#include -#include #include -#include #include -#include #include #include #include "fld_internal.h" @@ -161,6 +157,14 @@ struct fld_seq_param { unsigned int fsp_stop:1; }; +struct lprocfs_vars fld_client_proc_list[] = { + { "targets", fld_proc_read_targets, NULL, NULL }, + { "hash", fld_proc_read_hash, fld_proc_write_hash, NULL }, + { "cache_flush", NULL, fld_proc_write_cache_flush, NULL }, + { NULL } +}; + +# ifdef HAVE_SERVER_SUPPORT static void *fldb_seq_start(struct seq_file *p, loff_t *pos) { struct fld_seq_param *param = p->private; @@ -350,20 +354,17 @@ static int fldb_seq_release(struct inode *inode, struct file *file) return 0; } -struct lprocfs_vars fld_server_proc_list[] = { - { NULL }}; - -struct lprocfs_vars fld_client_proc_list[] = { - { "targets", fld_proc_read_targets, NULL, NULL }, - { "hash", fld_proc_read_hash, fld_proc_write_hash, NULL }, - { "cache_flush", NULL, fld_proc_write_cache_flush, NULL }, - { NULL }}; - -struct file_operations fld_proc_seq_fops = { +const struct file_operations fld_proc_seq_fops = { .owner = THIS_MODULE, .open = fldb_seq_open, .read = seq_read, .release = fldb_seq_release, }; -#endif +struct lprocfs_vars fld_server_proc_list[] = { + { NULL } +}; + +# endif /* HAVE_SERVER_SUPPORT */ + +#endif /* LPROCFS */