aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/coda/Makefile3
-rw-r--r--fs/coda/coda_int.h10
-rw-r--r--fs/coda/coda_linux.h4
-rw-r--r--fs/coda/sysctl.c11
4 files changed, 12 insertions, 16 deletions
diff --git a/fs/coda/Makefile b/fs/coda/Makefile
index 1ce66819da2a..78befb8369c9 100644
--- a/fs/coda/Makefile
+++ b/fs/coda/Makefile
@@ -6,7 +6,8 @@
6obj-$(CONFIG_CODA_FS) += coda.o 6obj-$(CONFIG_CODA_FS) += coda.o
7 7
8coda-objs := psdev.o cache.o cnode.o inode.o dir.o file.o upcall.o \ 8coda-objs := psdev.o cache.o cnode.o inode.o dir.o file.o upcall.o \
9 coda_linux.o symlink.o pioctl.o sysctl.o 9 coda_linux.o symlink.o pioctl.o
10coda-$(CONFIG_SYSCTL) += sysctl.o
10 11
11# If you want debugging output, please uncomment the following line. 12# If you want debugging output, please uncomment the following line.
12 13
diff --git a/fs/coda/coda_int.h b/fs/coda/coda_int.h
index bb0b3e0ed6c2..f82b59c9dd28 100644
--- a/fs/coda/coda_int.h
+++ b/fs/coda/coda_int.h
@@ -13,9 +13,19 @@ extern int coda_fake_statfs;
13void coda_destroy_inodecache(void); 13void coda_destroy_inodecache(void);
14int __init coda_init_inodecache(void); 14int __init coda_init_inodecache(void);
15int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync); 15int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
16
17#ifdef CONFIG_SYSCTL
16void coda_sysctl_init(void); 18void coda_sysctl_init(void);
17void coda_sysctl_clean(void); 19void coda_sysctl_clean(void);
20#else
21static inline void coda_sysctl_init(void)
22{
23}
18 24
25static inline void coda_sysctl_clean(void)
26{
27}
28#endif
19#endif /* _CODA_INT_ */ 29#endif /* _CODA_INT_ */
20 30
21 31
diff --git a/fs/coda/coda_linux.h b/fs/coda/coda_linux.h
index 517a363245c9..d5ebd36fb2cc 100644
--- a/fs/coda/coda_linux.h
+++ b/fs/coda/coda_linux.h
@@ -59,10 +59,6 @@ void coda_vattr_to_iattr(struct inode *, struct coda_vattr *);
59void coda_iattr_to_vattr(struct iattr *, struct coda_vattr *); 59void coda_iattr_to_vattr(struct iattr *, struct coda_vattr *);
60unsigned short coda_flags_to_cflags(unsigned short); 60unsigned short coda_flags_to_cflags(unsigned short);
61 61
62/* sysctl.h */
63void coda_sysctl_init(void);
64void coda_sysctl_clean(void);
65
66/* inode to cnode access functions */ 62/* inode to cnode access functions */
67 63
68static inline struct coda_inode_info *ITOC(struct inode *inode) 64static inline struct coda_inode_info *ITOC(struct inode *inode)
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c
index 0301d45000a8..fda3b702b1c5 100644
--- a/fs/coda/sysctl.c
+++ b/fs/coda/sysctl.c
@@ -12,7 +12,6 @@
12 12
13#include "coda_int.h" 13#include "coda_int.h"
14 14
15#ifdef CONFIG_SYSCTL
16static struct ctl_table_header *fs_table_header; 15static struct ctl_table_header *fs_table_header;
17 16
18static struct ctl_table coda_table[] = { 17static struct ctl_table coda_table[] = {
@@ -62,13 +61,3 @@ void coda_sysctl_clean(void)
62 fs_table_header = NULL; 61 fs_table_header = NULL;
63 } 62 }
64} 63}
65
66#else
67void coda_sysctl_init(void)
68{
69}
70
71void coda_sysctl_clean(void)
72{
73}
74#endif