]> git.hungrycats.org Git - linux/commitdiff
[PATCH] adfs: add static
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Wed, 8 Sep 2004 00:58:13 +0000 (17:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 8 Sep 2004 00:58:13 +0000 (17:58 -0700)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/adfs/adfs.h
fs/adfs/dir.c
fs/adfs/dir_f.c
fs/adfs/inode.c

index f495abc2849d08451e3fd6db99bd09a50803f346..b9ff42b381e6c95a1d306b67fcc50f091e2297d0 100644 (file)
@@ -64,12 +64,7 @@ struct adfs_discmap {
        unsigned int            dm_endbit;
 };
 
-/* dir stuff */
-
-
 /* Inode stuff */
-int adfs_get_block(struct inode *inode, sector_t block,
-                  struct buffer_head *bh, int create);
 struct inode *adfs_iget(struct super_block *sb, struct object_info *obj);
 void adfs_write_inode(struct inode *inode,int unused);
 int adfs_notify_change(struct dentry *dentry, struct iattr *attr);
@@ -83,9 +78,6 @@ void __adfs_error(struct super_block *sb, const char *function,
                  const char *fmt, ...);
 #define adfs_error(sb, fmt...) __adfs_error(sb, __FUNCTION__, fmt)
 
-/* namei.c */
-extern struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *);
-
 /* super.c */
 
 /*
index 1c047fc7753229f283ff2393c0c17b458e75f18f..d80a2d7bf30065513f0cdebf1e52b7c832aef7c4 100644 (file)
@@ -268,7 +268,8 @@ struct dentry_operations adfs_dentry_operations = {
        .d_compare      = adfs_compare,
 };
 
-struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
+static struct dentry *
+adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
 {
        struct inode *inode = NULL;
        struct object_info obj;
index 1c606266830fb157353b20682ea3dc6f5757ee63..7d6a8213cbde8950c1ee0409fc6b1c81ceb85b3e 100644 (file)
@@ -165,7 +165,7 @@ adfs_dir_checkbyte(const struct adfs_dir *dir)
 /*
  * Read and check that a directory is valid
  */
-int
+static int
 adfs_dir_read(struct super_block *sb, unsigned long object_id,
              unsigned int size, struct adfs_dir *dir)
 {
@@ -260,7 +260,7 @@ adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj)
  * get a directory entry.  Note that the caller is responsible
  * for holding the relevant locks.
  */
-int
+static int
 __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj)
 {
        struct super_block *sb = dir->sb;
@@ -290,7 +290,7 @@ __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj)
        return 0;
 }
 
-int
+static int
 __adfs_dir_put(struct adfs_dir *dir, int pos, struct object_info *obj)
 {
        struct super_block *sb = dir->sb;
index f17ccbcc56dfe9a0d3aed5ec23b7fa83f0eb5bb5..1b5d81edbf55075cc871e6749b718710a07edee9 100644 (file)
@@ -24,8 +24,9 @@
  * Lookup/Create a block at offset 'block' into 'inode'.  We currently do
  * not support creation of new blocks, so we return -EIO for this case.
  */
-int
-adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, int create)
+static int
+adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh,
+              int create)
 {
        if (block < 0)
                goto abort_negative;