make fs/jffs2/nodelist.c:jffs2_obsolete_node_frag() static

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jul 6 19:59:01 EDT 2006


Commit:     90a18fab4ae07b77bf053b75a4d1285cd94faa79
Parent:     220b0f5755f86745e4e16d001fe6f46b448565fa
commit 90a18fab4ae07b77bf053b75a4d1285cd94faa79
Author:     Adrian Bunk <bunk at stusta.de>
AuthorDate: Thu Jul 6 22:37:43 2006 +0200
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Jul 7 00:02:10 2006 +0100

    make fs/jffs2/nodelist.c:jffs2_obsolete_node_frag() static
    
    This patch makes the needlessly global jffs2_obsolete_node_frag()
    static.
    
    Signed-off-by: Adrian Bunk <bunk at stusta.de>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 fs/jffs2/nodelist.c |    6 +++++-
 fs/jffs2/nodelist.h |    1 -
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c
index 7675b33..5a6b4d6 100644
--- a/fs/jffs2/nodelist.c
+++ b/fs/jffs2/nodelist.c
@@ -21,6 +21,9 @@ #include <linux/slab.h>
 #include <linux/pagemap.h>
 #include "nodelist.h"
 
+static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c,
+				     struct jffs2_node_frag *this);
+
 void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full_dirent **list)
 {
 	struct jffs2_full_dirent **prev = list;
@@ -87,7 +90,8 @@ void jffs2_truncate_fragtree(struct jffs
 	}
 }
 
-void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, struct jffs2_node_frag *this)
+static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c,
+				     struct jffs2_node_frag *this)
 {
 	if (this->node) {
 		this->node->frags--;
diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h
index cae92c1..0ddfd70 100644
--- a/fs/jffs2/nodelist.h
+++ b/fs/jffs2/nodelist.h
@@ -334,7 +334,6 @@ void jffs2_kill_fragtree(struct rb_root 
 struct rb_node *rb_next(struct rb_node *);
 struct rb_node *rb_prev(struct rb_node *);
 void rb_replace_node(struct rb_node *victim, struct rb_node *new, struct rb_root *root);
-void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, struct jffs2_node_frag *this);
 int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn);
 void jffs2_truncate_fragtree (struct jffs2_sb_info *c, struct rb_root *list, uint32_t size);
 int jffs2_add_older_frag_to_fragtree(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_tmp_dnode_info *tn);



More information about the linux-mtd-cvs mailing list