Thread: [Jfs-discussion] [2.6 patch] JFS: make some symbols static
Brought to you by:
blaschke-oss,
shaggyk
From: Adrian B. <bu...@st...> - 2004-10-30 10:24:03
|
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 <bu...@st...> --- 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 */ |
From: Dave K. <sh...@au...> - 2004-11-01 17:03:07
|
On Sat, 2004-10-30 at 02:23, Adrian Bunk wrote: > The patch below makes some JFS symbols that are only used inside the > file they are defined in static. > > ... Looks sane. I'll apply this and push it to Andrew. Thanks, Shaggy -- Dave Kleikamp IBM Linux Technology Center sh...@au... |
From: Jason G. <ja...@to...> - 2004-11-01 17:26:23
|
From the details at <http://dsbl.org/listing?ip=129.42.208.182> it looks like one of the IBM MX's is an open proxy. I guess there's no abuse@ address for that bluebird sub-domain either: <http://www.rfc-ignorant.org/policy-abuse.php> If this could be forwarded to the proper support group that'd be great! ~Jason -- Received: from d01relay01.pok.ibm.com (bi-02pt1.bluebird.ibm.com [129.42.208.182]) by www-126.ibm.com (8.11.6/8.11.0) with ESMTP id iA1E36829556 for <jfs...@ww...>; Mon, 1 Nov 2004 09:03:06 -0500 pts rule name description --- ---------------------- ---------------------------------------------- 0.4 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org 2.8 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org <http://dsbl.org/listing?ip=129.42.208.182> 1.0 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net <http://www.spamcop.net/bl.shtml?129.42.208.182> 2.5 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL 129.42.208.182 listed in sbl-xbl.spamhaus.org |