Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ed3373fd
Commit
ed3373fd
authored
Feb 25, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] fix compilation with CONFIG_SYSCTL=n
SGI Modid: 2.5.x-xfs:slinx:140173a
parent
6d6372a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
fs/xfs/linux/xfs_globals.c
fs/xfs/linux/xfs_globals.c
+9
-0
fs/xfs/linux/xfs_sysctl.c
fs/xfs/linux/xfs_sysctl.c
+0
-7
fs/xfs/linux/xfs_sysctl.h
fs/xfs/linux/xfs_sysctl.h
+3
-3
No files found.
fs/xfs/linux/xfs_globals.c
View file @
ed3373fd
...
...
@@ -37,8 +37,17 @@
#include <xfs.h>
/*
* System memory size - used to scale certain data structures in XFS.
*/
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.
*/
...
...
fs/xfs/linux/xfs_sysctl.c
View file @
ed3373fd
...
...
@@ -34,17 +34,10 @@
#include <linux/sysctl.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_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
;
...
...
fs/xfs/linux/xfs_sysctl.h
View file @
ed3373fd
...
...
@@ -64,8 +64,8 @@ extern xfs_param_t xfs_params;
extern
void
xfs_sysctl_register
(
void
);
extern
void
xfs_sysctl_unregister
(
void
);
#else
static
__inline
void
xfs_sysctl_register
(
void
)
{
};
static
__inline
void
xfs_sysctl_unregister
(
void
)
{
};
#endif
# define xfs_sysctl_register() do { } while (0)
# define xfs_sysctl_unregister() do { } while (0)
#endif
/* CONFIG_SYSCTL */
#endif
/* __XFS_SYSCTL_H__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment