#define DEBUG_SUBSYSTEM S_FID
-#ifdef __KERNEL__
-# include <libcfs/libcfs.h>
-# include <linux/module.h>
-#else /* __KERNEL__ */
-# include <liblustre.h>
-#endif
-
+#include <libcfs/libcfs.h>
+#include <linux/module.h>
#include <obd.h>
#include <obd_class.h>
-#include <dt_object.h>
-#include <md_object.h>
#include <obd_support.h>
-#include <lustre_req_layout.h>
#include <lustre_fid.h>
+#include <lprocfs_status.h>
#include "fid_internal.h"
#ifdef LPROCFS
RETURN(rc);
}
+#ifdef HAVE_SERVER_SUPPORT
/*
* Server side procfs stuff.
*/
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,
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 },