[PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c.

From: Robert P. J. Day
Date: Fri Feb 02 2007 - 04:55:14 EST



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

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

---

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
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/