Skip to contentSkip to conversation

make fs/jbd/transaction.c:__journal_temp_unlink_buffer() static

RFC PATCH New Adrian Bunk 1 participant 1 message Nov 20, 2006

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 make fs/jbd/transaction.c:__journal_temp_unlink_buffer() static

This patch makes the needlessly global __journal_temp_unlink_buffer() static.

---

 fs/jbd/transaction.c |    4 +++-
 include/linux/jbd.h  |    1 -
 2 files changed, 3 insertions(+), 2 deletions(-)
include/linux/jbd.h renamed from include/linux/jbd.h.old +0 -1
@@ -839,7 +839,6 @@
  */
 
 /* Filing buffers */
-extern void __journal_temp_unlink_buffer(struct journal_head *jh);
 extern void journal_unfile_buffer(journal_t *, struct journal_head *);
 extern void __journal_unfile_buffer(struct journal_head *);
 extern void __journal_refile_buffer(struct journal_head *);
fs/jbd/transaction.c renamed from fs/jbd/transaction.c.old +3 -1
@@ -27,6 +27,8 @@
 #include <linux/mm.h>
 #include <linux/highmem.h>
 
+static void __journal_temp_unlink_buffer(struct journal_head *jh);
+
 /*
  * get_transaction: obtain a new transaction_t object.
  *
@@ -1499,7 +1501,7 @@
  *
  * Called under j_list_lock.  The journal may not be locked.
  */
-void __journal_temp_unlink_buffer(struct journal_head *jh)
+static void __journal_temp_unlink_buffer(struct journal_head *jh)
 {
 	struct journal_head **list = NULL;
 	transaction_t *transaction;