public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: shaggy@austin.ibm.com
Cc: jfs-discussion@oss.software.ibm.com, linux-kernel@vger.kernel.org
Subject: [2.6 patch] JFS: make some symbols static
Date: Sat, 30 Oct 2004 09:23:27 +0200	[thread overview]
Message-ID: <20041030072327.GI4374@stusta.de> (raw)

The patch below makes some JFS symbols that are only used inside the 
file they are defined in static.


diffstat output:
 fs/jfs/jfs_logmgr.c   |    8 ++++----
 fs/jfs/jfs_metapage.c |    2 +-
 fs/jfs/jfs_txnmgr.c   |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)



Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc1-mm2-full/fs/jfs/jfs_logmgr.c.old	2004-10-30 08:24:18.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/fs/jfs/jfs_logmgr.c	2004-10-30 08:58:06.000000000 +0200
@@ -161,9 +161,9 @@
 /*
  * Global list of active external journals
  */
-LIST_HEAD(jfs_external_logs);
-struct jfs_log *dummy_log = NULL;
-DECLARE_MUTEX(jfs_log_sem);
+static LIST_HEAD(jfs_external_logs);
+static struct jfs_log *dummy_log = NULL;
+static DECLARE_MUTEX(jfs_log_sem);
 
 /*
  * external references
@@ -205,7 +205,7 @@
  *	statistics
  */
 #ifdef CONFIG_JFS_STATISTICS
-struct lmStat {
+static struct lmStat {
 	uint commit;		/* # of commit */
 	uint pagedone;		/* # of page written */
 	uint submitted;		/* # of pages submitted */
--- linux-2.6.10-rc1-mm2-full/fs/jfs/jfs_metapage.c.old	2004-10-30 08:26:28.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/fs/jfs/jfs_metapage.c	2004-10-30 08:26:46.000000000 +0200
@@ -31,7 +31,7 @@
 static spinlock_t meta_lock = SPIN_LOCK_UNLOCKED;
 
 #ifdef CONFIG_JFS_STATISTICS
-struct {
+static struct {
 	uint	pagealloc;	/* # of page allocations */
 	uint	pagefree;	/* # of page frees */
 	uint	lockwait;	/* # of sleeping lock_metapage() calls */
--- linux-2.6.10-rc1-mm2-full/fs/jfs/jfs_txnmgr.c.old	2004-10-30 08:28:07.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/fs/jfs/jfs_txnmgr.c	2004-10-30 08:27:24.000000000 +0200
@@ -80,7 +80,7 @@
 int jfs_tlocks_low;		/* Indicates low number of available tlocks */
 
 #ifdef CONFIG_JFS_STATISTICS
-struct {
+static struct {
 	uint txBegin;
 	uint txBegin_barrier;
 	uint txBegin_lockslow;
@@ -152,7 +152,7 @@
 /*
  *      statistics
  */
-struct {
+static struct {
 	tid_t maxtid;		/* 4: biggest tid ever used */
 	lid_t maxlid;		/* 4: biggest lid ever used */
 	int ntid;		/* 4: # of transactions performed */

             reply	other threads:[~2004-10-30  7:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30  7:23 Adrian Bunk [this message]
2004-11-01 14:02 ` [2.6 patch] JFS: make some symbols static Dave Kleikamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041030072327.GI4374@stusta.de \
    --to=bunk@stusta.de \
    --cc=jfs-discussion@oss.software.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaggy@austin.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox