X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ffid%2Flproc_fid.c;h=67cf63c2fa094eb3d11068595812cd0fc8b5e8e9;hb=c8fd9c3c38a66ab3dd479c48e0168577a4ff960e;hp=7040c492f461e314a06e09323dbec4be365315ab;hpb=98060d83459ba10409f295898f0ec917f938b4d3;p=fs%2Flustre-release.git diff --git a/lustre/fid/lproc_fid.c b/lustre/fid/lproc_fid.c index 7040c49..67cf63c 100644 --- a/lustre/fid/lproc_fid.c +++ b/lustre/fid/lproc_fid.c @@ -42,20 +42,13 @@ #define DEBUG_SUBSYSTEM S_FID -#ifdef __KERNEL__ -# include -# include -#else /* __KERNEL__ */ -# include -#endif - +#include +#include #include #include -#include -#include #include -#include #include +#include #include "fid_internal.h" #ifdef LPROCFS @@ -97,6 +90,7 @@ seq_proc_read_common(char *page, char **start, off_t off, RETURN(rc); } +#ifdef HAVE_SERVER_SUPPORT /* * Server side procfs stuff. */ @@ -214,6 +208,17 @@ seq_server_proc_read_width(char *page, char **start, off_t off, RETURN(rc); } +struct lprocfs_vars seq_server_proc_list[] = { + { "space", + seq_server_proc_read_space, seq_server_proc_write_space, NULL }, + { "width", + seq_server_proc_read_width, seq_server_proc_write_width, NULL }, + { "server", + seq_server_proc_read_server, NULL, NULL }, + { NULL } +}; +#endif /* HAVE_SERVER_SUPPORT */ + /* Client side procfs stuff */ static int seq_client_proc_write_space(struct file *file, const char *buffer, @@ -349,12 +354,6 @@ seq_client_proc_read_server(char *page, char **start, off_t off, RETURN(rc); } -struct lprocfs_vars seq_server_proc_list[] = { - { "space", seq_server_proc_read_space, seq_server_proc_write_space, NULL }, - { "width", seq_server_proc_read_width, seq_server_proc_write_width, NULL }, - { "server", seq_server_proc_read_server, NULL, NULL }, - { NULL }}; - struct lprocfs_vars seq_client_proc_list[] = { { "space", seq_client_proc_read_space, seq_client_proc_write_space, NULL }, { "width", seq_client_proc_read_width, seq_client_proc_write_width, NULL },