forked from Minki/linux
[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>
This commit is contained in:
parent
2c2212901f
commit
c98d8cfbc6
13
fs/coda/coda_int.h
Normal file
13
fs/coda/coda_int.h
Normal file
@ -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_ */
|
||||||
|
|
||||||
|
|
@ -27,6 +27,8 @@
|
|||||||
#include <linux/coda_cache.h>
|
#include <linux/coda_cache.h>
|
||||||
#include <linux/coda_proc.h>
|
#include <linux/coda_proc.h>
|
||||||
|
|
||||||
|
#include "coda_int.h"
|
||||||
|
|
||||||
/* dir inode-ops */
|
/* dir inode-ops */
|
||||||
static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd);
|
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);
|
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 *);
|
|||||||
/* support routines */
|
/* support routines */
|
||||||
static int coda_venus_readdir(struct file *filp, filldir_t filldir,
|
static int coda_venus_readdir(struct file *filp, filldir_t filldir,
|
||||||
void *dirent, struct dentry *dir);
|
void *dirent, struct dentry *dir);
|
||||||
int coda_fsync(struct file *, struct dentry *dentry, int datasync);
|
|
||||||
|
|
||||||
/* same as fs/bad_inode.c */
|
/* same as fs/bad_inode.c */
|
||||||
static int coda_return_EIO(void)
|
static int coda_return_EIO(void)
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
#include <linux/coda_psdev.h>
|
#include <linux/coda_psdev.h>
|
||||||
#include <linux/coda_proc.h>
|
#include <linux/coda_proc.h>
|
||||||
|
|
||||||
|
#include "coda_int.h"
|
||||||
|
|
||||||
/* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support
|
/* 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 */
|
* CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */
|
||||||
static int use_coda_close;
|
static int use_coda_close;
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
#include <linux/coda_fs_i.h>
|
#include <linux/coda_fs_i.h>
|
||||||
#include <linux/coda_cache.h>
|
#include <linux/coda_cache.h>
|
||||||
|
|
||||||
|
#include "coda_int.h"
|
||||||
|
|
||||||
/* VFS super_block ops */
|
/* VFS super_block ops */
|
||||||
static void coda_clear_inode(struct inode *);
|
static void coda_clear_inode(struct inode *);
|
||||||
static void coda_put_super(struct super_block *);
|
static void coda_put_super(struct super_block *);
|
||||||
|
@ -48,12 +48,9 @@
|
|||||||
#include <linux/coda_psdev.h>
|
#include <linux/coda_psdev.h>
|
||||||
#include <linux/coda_proc.h>
|
#include <linux/coda_proc.h>
|
||||||
|
|
||||||
#define upc_free(r) kfree(r)
|
#include "coda_int.h"
|
||||||
|
|
||||||
/*
|
#define upc_free(r) kfree(r)
|
||||||
* Coda stuff
|
|
||||||
*/
|
|
||||||
extern struct file_system_type coda_fs_type;
|
|
||||||
|
|
||||||
/* statistics */
|
/* statistics */
|
||||||
int coda_hard; /* allows signals during upcalls */
|
int coda_hard; /* allows signals during upcalls */
|
||||||
@ -394,8 +391,6 @@ out:
|
|||||||
MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>");
|
MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
extern int coda_init_inodecache(void);
|
|
||||||
extern void coda_destroy_inodecache(void);
|
|
||||||
static int __init init_coda(void)
|
static int __init init_coda(void)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
Loading…
Reference in New Issue
Block a user