LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c.
@ 2007-02-02  9:53 Robert P. J. Day
  2007-02-02 10:00 ` Robert P. J. Day
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2007-02-02  9:53 UTC (permalink / raw)
  To: Linux kernel mailing list; +Cc: Andrew Morton, swhiteho


  Rename the incorrect macro name "NR_CPUS" to "CONFIG_NR_CPUS".

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 4381469..e6bf4b9 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -70,13 +70,13 @@ static struct gfs2_gl_hash_bucket gl_hash_table[GFS2_GL_HASH_SIZE];
 #ifdef CONFIG_LOCKDEP
 # define GL_HASH_LOCK_SZ        256
 #else
-# if NR_CPUS >= 32
+# if CONFIG_NR_CPUS >= 32
 #  define GL_HASH_LOCK_SZ       4096
-# elif NR_CPUS >= 16
+# elif CONFIG_NR_CPUS >= 16
 #  define GL_HASH_LOCK_SZ       2048
-# elif NR_CPUS >= 8
+# elif CONFIG_NR_CPUS >= 8
 #  define GL_HASH_LOCK_SZ       1024
-# elif NR_CPUS >= 4
+# elif CONFIG_NR_CPUS >= 4
 #  define GL_HASH_LOCK_SZ       512
 # else
 #  define GL_HASH_LOCK_SZ       256

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c.
  2007-02-02  9:53 [PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c Robert P. J. Day
@ 2007-02-02 10:00 ` Robert P. J. Day
  0 siblings, 0 replies; 2+ messages in thread
From: Robert P. J. Day @ 2007-02-02 10:00 UTC (permalink / raw)
  To: Linux kernel mailing list; +Cc: Andrew Morton, swhiteho

On Fri, 2 Feb 2007, Robert P. J. Day wrote:

>
>   Rename the incorrect macro name "NR_CPUS" to "CONFIG_NR_CPUS".
>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

ACK!!  ignore, ignore!  duh.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-02 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02  9:53 [PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c Robert P. J. Day
2007-02-02 10:00 ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).