diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/coda/coda_int.h | 13 | ||||
-rw-r--r-- | fs/coda/dir.c | 3 | ||||
-rw-r--r-- | fs/coda/file.c | 2 | ||||
-rw-r--r-- | fs/coda/inode.c | 2 | ||||
-rw-r--r-- | fs/coda/psdev.c | 9 |
5 files changed, 21 insertions, 8 deletions
diff --git a/fs/coda/coda_int.h b/fs/coda/coda_int.h new file mode 100644 index 000000000000..9e6338fea514 --- /dev/null +++ b/fs/coda/coda_int.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #ifndef _CODA_INT_ | ||
2 | #define _CODA_INT_ | ||
3 | |||
4 | extern struct file_system_type coda_fs_type; | ||
5 | |||
6 | void coda_destroy_inodecache(void); | ||
7 | int coda_init_inodecache(void); | ||
8 | int coda_fsync(struct file *coda_file, struct dentry *coda_dentry, | ||
9 | int datasync); | ||
10 | |||
11 | #endif /* _CODA_INT_ */ | ||
12 | |||
13 | |||
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 8f1a517f8b4e..54f76de8a686 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -27,6 +27,8 @@ | |||
27 | #include <linux/coda_cache.h> | 27 | #include <linux/coda_cache.h> |
28 | #include <linux/coda_proc.h> | 28 | #include <linux/coda_proc.h> |
29 | 29 | ||
30 | #include "coda_int.h" | ||
31 | |||
30 | /* dir inode-ops */ | 32 | /* dir inode-ops */ |
31 | static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd); | 33 | static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd); |
32 | static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd); | 34 | static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd); |
@@ -50,7 +52,6 @@ static int coda_dentry_delete(struct dentry *); | |||
50 | /* support routines */ | 52 | /* support routines */ |
51 | static int coda_venus_readdir(struct file *filp, filldir_t filldir, | 53 | static int coda_venus_readdir(struct file *filp, filldir_t filldir, |
52 | void *dirent, struct dentry *dir); | 54 | void *dirent, struct dentry *dir); |
53 | int coda_fsync(struct file *, struct dentry *dentry, int datasync); | ||
54 | 55 | ||
55 | /* same as fs/bad_inode.c */ | 56 | /* same as fs/bad_inode.c */ |
56 | static int coda_return_EIO(void) | 57 | static int coda_return_EIO(void) |
diff --git a/fs/coda/file.c b/fs/coda/file.c index 30b4630bd735..146a991d6eb5 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c | |||
@@ -24,6 +24,8 @@ | |||
24 | #include <linux/coda_psdev.h> | 24 | #include <linux/coda_psdev.h> |
25 | #include <linux/coda_proc.h> | 25 | #include <linux/coda_proc.h> |
26 | 26 | ||
27 | #include "coda_int.h" | ||
28 | |||
27 | /* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support | 29 | /* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support |
28 | * CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */ | 30 | * CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */ |
29 | static int use_coda_close; | 31 | static int use_coda_close; |
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 04a73fb4848f..7d7d52f74b28 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/coda_fs_i.h> | 31 | #include <linux/coda_fs_i.h> |
32 | #include <linux/coda_cache.h> | 32 | #include <linux/coda_cache.h> |
33 | 33 | ||
34 | #include "coda_int.h" | ||
35 | |||
34 | /* VFS super_block ops */ | 36 | /* VFS super_block ops */ |
35 | static void coda_clear_inode(struct inode *); | 37 | static void coda_clear_inode(struct inode *); |
36 | static void coda_put_super(struct super_block *); | 38 | static void coda_put_super(struct super_block *); |
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index 6a3df88accfe..98c74fe2e139 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c | |||
@@ -48,12 +48,9 @@ | |||
48 | #include <linux/coda_psdev.h> | 48 | #include <linux/coda_psdev.h> |
49 | #include <linux/coda_proc.h> | 49 | #include <linux/coda_proc.h> |
50 | 50 | ||
51 | #define upc_free(r) kfree(r) | 51 | #include "coda_int.h" |
52 | 52 | ||
53 | /* | 53 | #define upc_free(r) kfree(r) |
54 | * Coda stuff | ||
55 | */ | ||
56 | extern struct file_system_type coda_fs_type; | ||
57 | 54 | ||
58 | /* statistics */ | 55 | /* statistics */ |
59 | int coda_hard; /* allows signals during upcalls */ | 56 | int coda_hard; /* allows signals during upcalls */ |
@@ -394,8 +391,6 @@ out: | |||
394 | MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>"); | 391 | MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>"); |
395 | MODULE_LICENSE("GPL"); | 392 | MODULE_LICENSE("GPL"); |
396 | 393 | ||
397 | extern int coda_init_inodecache(void); | ||
398 | extern void coda_destroy_inodecache(void); | ||
399 | static int __init init_coda(void) | 394 | static int __init init_coda(void) |
400 | { | 395 | { |
401 | int status; | 396 | int status; |