]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fat: add static
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Sat, 4 Sep 2004 08:31:30 +0000 (01:31 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 4 Sep 2004 08:31:30 +0000 (01:31 -0700)
In the long sequence of static additions, here some fat ones.

fs/fat/cache.c
fs/fat/inode.c
include/linux/msdos_fs.h

index eec09901e22582bd216ad7f0b1ab8ae9a078153f..c15a891d95e035c08a37d71d3019b3992fa7a486 100644 (file)
@@ -146,7 +146,8 @@ void fat_cache_init(struct super_block *sb)
        sbi->cache = sbi->cache_array;
 }
 
-void fat_cache_lookup(struct inode *inode, int cluster, int *f_clu, int *d_clu)
+static void
+fat_cache_lookup(struct inode *inode, int cluster, int *f_clu, int *d_clu)
 {
        struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb);
        struct fat_cache *walk;
index a85a9eea09a6871526f070cb1489a21fc8ca0c85..f8134bffb27e4cef1ee2620e441599ef53b11997 100644 (file)
@@ -59,7 +59,7 @@ static char fat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET;
 #define FAT_HASH_SIZE  (1UL << FAT_HASH_BITS)
 #define FAT_HASH_MASK  (FAT_HASH_SIZE-1)
 static struct list_head fat_inode_hashtable[FAT_HASH_SIZE];
-spinlock_t fat_inode_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t fat_inode_lock = SPIN_LOCK_UNLOCKED;
 
 void fat_hash_init(void)
 {
@@ -579,12 +579,11 @@ static int fat_read_root(struct inode *inode)
  * of i_logstart is used to store the directory entry offset.
  */
 
-struct dentry *fat_decode_fh(struct super_block *sb, __u32 *fh,
-                            int len, int fhtype, 
-                            int (*acceptable)(void *context, struct dentry *de),
-                            void *context)
+static struct dentry *
+fat_decode_fh(struct super_block *sb, __u32 *fh, int len, int fhtype, 
+             int (*acceptable)(void *context, struct dentry *de),
+             void *context)
 {
-
        if (fhtype != 3)
                return ERR_PTR(-ESTALE);
        if (len < 5)
@@ -593,7 +592,7 @@ struct dentry *fat_decode_fh(struct super_block *sb, __u32 *fh,
        return sb->s_export_op->find_exported_dentry(sb, fh, NULL, acceptable, context);
 }
 
-struct dentry *fat_get_dentry(struct super_block *sb, void *inump)
+static struct dentry *fat_get_dentry(struct super_block *sb, void *inump)
 {
        struct inode *inode = NULL;
        struct dentry *result;
@@ -653,7 +652,8 @@ struct dentry *fat_get_dentry(struct super_block *sb, void *inump)
        return result;
 }
 
-int fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable)
+static int
+fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable)
 {
        int len = *lenp;
        struct inode *inode =  de->d_inode;
@@ -676,7 +676,7 @@ int fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable)
        return 3;
 }
 
-struct dentry *fat_get_parent(struct dentry *child)
+static struct dentry *fat_get_parent(struct dentry *child)
 {
        struct buffer_head *bh=NULL;
        struct msdos_dir_entry *de = NULL;
index d8916f9bfa09dcde49af8bfffac1b76d44eba9b5..6d141394ff3e3a2f1ff2e6d8d6018e3d225626fc 100644 (file)
@@ -233,8 +233,6 @@ extern int fat_access(struct super_block *sb, int nr, int new_value);
 extern int __fat_access(struct super_block *sb, int nr, int new_value);
 extern int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys);
 extern void fat_cache_init(struct super_block *sb);
-extern void fat_cache_lookup(struct inode *inode, int cluster, int *f_clu,
-                            int *d_clu);
 extern void fat_cache_add(struct inode *inode, int f_clu, int d_clu);
 extern void fat_cache_inval_inode(struct inode *inode);
 extern int fat_get_cluster(struct inode *inode, int cluster,