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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Robert P. J. Day <[email protected]>

---

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux