Skip to content

Commit

Permalink
[PATCH] fs/coda/: proper prototypes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Mar 24, 2006
1 parent 2c22129 commit c98d8cf
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions fs/coda/coda_int.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef _CODA_INT_
#define _CODA_INT_

extern struct file_system_type coda_fs_type;

void coda_destroy_inodecache(void);
int coda_init_inodecache(void);
int coda_fsync(struct file *coda_file, struct dentry *coda_dentry,
int datasync);

#endif /* _CODA_INT_ */


3 changes: 2 additions & 1 deletion fs/coda/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <linux/coda_cache.h>
#include <linux/coda_proc.h>

#include "coda_int.h"

/* dir inode-ops */
static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd);
static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd);
Expand All @@ -50,7 +52,6 @@ static int coda_dentry_delete(struct dentry *);
/* support routines */
static int coda_venus_readdir(struct file *filp, filldir_t filldir,
void *dirent, struct dentry *dir);
int coda_fsync(struct file *, struct dentry *dentry, int datasync);

/* same as fs/bad_inode.c */
static int coda_return_EIO(void)
Expand Down
2 changes: 2 additions & 0 deletions fs/coda/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/coda_psdev.h>
#include <linux/coda_proc.h>

#include "coda_int.h"

/* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support
* CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */
static int use_coda_close;
Expand Down
2 changes: 2 additions & 0 deletions fs/coda/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <linux/coda_fs_i.h>
#include <linux/coda_cache.h>

#include "coda_int.h"

/* VFS super_block ops */
static void coda_clear_inode(struct inode *);
static void coda_put_super(struct super_block *);
Expand Down
9 changes: 2 additions & 7 deletions fs/coda/psdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@
#include <linux/coda_psdev.h>
#include <linux/coda_proc.h>

#define upc_free(r) kfree(r)
#include "coda_int.h"

/*
* Coda stuff
*/
extern struct file_system_type coda_fs_type;
#define upc_free(r) kfree(r)

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

extern int coda_init_inodecache(void);
extern void coda_destroy_inodecache(void);
static int __init init_coda(void)
{
int status;
Expand Down

0 comments on commit c98d8cf

Please sign in to comment.