fs/coda/: make some code static
PATCH 1/1 fs/coda/: make some code static
The patch below makes some needlessly global code static.
diffstat output:
fs/coda/cnode.c | 2 - fs/coda/dir.c | 2 - fs/coda/file.c | 2 - fs/coda/inode.c | 2 - fs/coda/sysctl.c | 56 +++++++++++++++++++------------------- include/linux/coda_proc.h | 21 -------------- 6 files changed, 33 insertions(+), 52 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
fs/coda/cnode.c renamed from fs/coda/cnode.c.old +1 -1
@@ -11,7 +11,7 @@#include <linux/coda_fs_i.h> #include <linux/coda_psdev.h> -inline int coda_fideq (struct CodaFid *fid1,struct CodaFid *fid2) +static inline int coda_fideq (struct CodaFid *fid1,struct CodaFid *fid2) {return memcmp (fid1, fid2,sizeof (*fid1)) ==0 ; }
fs/coda/dir.c renamed from fs/coda/dir.c.old +1 -1
@@ -55,7 +55,7 @@int coda_hasmknod; -struct dentry_operations coda_dentry_operations = +static struct dentry_operations coda_dentry_operations = { .d_revalidate = coda_dentry_revalidate, .d_delete = coda_dentry_delete,
fs/coda/file.c renamed from fs/coda/file.c.old +1 -1
@@ -26,7 +26,7 @@/* 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 */ -int use_coda_close; +static int use_coda_close;static ssize_t coda_file_read (struct file *coda_file,char __user *buf,size_t count,loff_t *ppos)
fs/coda/inode.c renamed from fs/coda/inode.c.old +1 -1
@@ -89,7 +89,7 @@ }/* exported operations */ -struct super_operations coda_super_operations = +static struct super_operations coda_super_operations = { .alloc_inode = coda_alloc_inode, .destroy_inode = coda_destroy_inode,
include/linux/coda_proc.h renamed from include/linux/coda_proc.h.old +0 -21
@@ -72,26 +72,5 @@/* these global variables hold the actual statistics data */ extern struct coda_vfs_stats coda_vfs_stat; -extern struct coda_cache_inv_stats coda_cache_inv_stat; - -/* reset statistics to 0 */ -void reset_coda_vfs_stats (void ); -void reset_coda_cache_inv_stats (void ); - -/* like coda_dointvec, these functions are to be registered in the ctl_table -* data structure for /proc/sys/... files -*/ -int do_reset_coda_vfs_stats (ctl_table * table,int write,struct file * filp, -void __user * buffer,size_t * lenp,loff_t * ppos ); -int do_reset_coda_cache_inv_stats (ctl_table * table,int write, -struct file * filp,void __user * buffer, -size_t * lenp,loff_t * ppos ); - -/* these functions are called to form the content of /proc/fs/coda/... files */ -int coda_vfs_stats_get_info (char * buffer,char ** start,off_t offset, -int length); -int coda_cache_inv_stats_get_info (char * buffer,char ** start,off_t offset, -int length); -#endif /* _CODA_PROC_H */
fs/coda/sysctl.c renamed from fs/coda/sysctl.c.old +29 -27
102 lines not on this page · raw message