Skip to content

Commit c98d8cf

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[PATCH] fs/coda/: proper prototypes
Introduce a file fs/coda/coda_int.h with proper prototypes for some code. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Jan Harkes <jaharkes@cs.cmu.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 2c22129 commit c98d8cf

5 files changed

Lines changed: 21 additions & 8 deletions

File tree

‎fs/coda/coda_int.h‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

‎fs/coda/dir.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <linux/coda_cache.h>
2828
#include <linux/coda_proc.h>
2929

30+
#include "coda_int.h"
31+
3032
/* dir inode-ops */
3133
static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd);
3234
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 *);
5052
/* support routines */
5153
static int coda_venus_readdir(struct file *filp, filldir_t filldir,
5254
void *dirent, struct dentry *dir);
53-
int coda_fsync(struct file *, struct dentry *dentry, int datasync);
5455

5556
/* same as fs/bad_inode.c */
5657
static int coda_return_EIO(void)

‎fs/coda/file.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include <linux/coda_psdev.h>
2525
#include <linux/coda_proc.h>
2626

27+
#include "coda_int.h"
28+
2729
/* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support
2830
* CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */
2931
static int use_coda_close;

‎fs/coda/inode.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#include <linux/coda_fs_i.h>
3232
#include <linux/coda_cache.h>
3333

34+
#include "coda_int.h"
35+
3436
/* VFS super_block ops */
3537
static void coda_clear_inode(struct inode *);
3638
static void coda_put_super(struct super_block *);

‎fs/coda/psdev.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@
4848
#include <linux/coda_psdev.h>
4949
#include <linux/coda_proc.h>
5050

51-
#define upc_free(r) kfree(r)
51+
#include "coda_int.h"
5252

53-
/*
54-
* Coda stuff
55-
*/
56-
extern struct file_system_type coda_fs_type;
53+
#define upc_free(r) kfree(r)
5754

5855
/* statistics */
5956
int coda_hard; /* allows signals during upcalls */
@@ -394,8 +391,6 @@ static int init_coda_psdev(void)
394391
MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>");
395392
MODULE_LICENSE("GPL");
396393

397-
extern int coda_init_inodecache(void);
398-
extern void coda_destroy_inodecache(void);
399394
static int __init init_coda(void)
400395
{
401396
int status;

0 commit comments

Comments
 (0)