Commit ed3373fd authored by Christoph Hellwig's avatar Christoph Hellwig

[XFS] fix compilation with CONFIG_SYSCTL=n

SGI Modid: 2.5.x-xfs:slinx:140173a
parent 6d6372a7
...@@ -37,8 +37,17 @@ ...@@ -37,8 +37,17 @@
#include <xfs.h> #include <xfs.h>
/*
* System memory size - used to scale certain data structures in XFS.
*/
unsigned long xfs_physmem; unsigned long xfs_physmem;
/*
* Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
* other XFS code uses these values.
*/
xfs_param_t xfs_params = { 0, 1, 0, 0, 0 };
/* /*
* Used to serialize atomicIncWithWrap. * Used to serialize atomicIncWithWrap.
*/ */
......
...@@ -34,17 +34,10 @@ ...@@ -34,17 +34,10 @@
#include <linux/sysctl.h> #include <linux/sysctl.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
/*
* Tunable XFS parameters
*/
extern struct xfsstats xfsstats;
STATIC ulong xfs_min[XFS_PARAM] = { 0, 0, 0, 0, 0 }; STATIC ulong xfs_min[XFS_PARAM] = { 0, 0, 0, 0, 0 };
STATIC ulong xfs_max[XFS_PARAM] = { 1, 1, 1, 1, 127 }; STATIC ulong xfs_max[XFS_PARAM] = { 1, 1, 1, 1, 127 };
xfs_param_t xfs_params = { 0, 1, 0, 0, 0 };
static struct ctl_table_header *xfs_table_header; static struct ctl_table_header *xfs_table_header;
......
...@@ -64,8 +64,8 @@ extern xfs_param_t xfs_params; ...@@ -64,8 +64,8 @@ extern xfs_param_t xfs_params;
extern void xfs_sysctl_register(void); extern void xfs_sysctl_register(void);
extern void xfs_sysctl_unregister(void); extern void xfs_sysctl_unregister(void);
#else #else
static __inline void xfs_sysctl_register(void) { }; # define xfs_sysctl_register() do { } while (0)
static __inline void xfs_sysctl_unregister(void) { }; # define xfs_sysctl_unregister() do { } while (0)
#endif #endif /* CONFIG_SYSCTL */
#endif /* __XFS_SYSCTL_H__ */ #endif /* __XFS_SYSCTL_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment