mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Re-organization of PIDMAP_ENTRIES macro expansion
@ 2008-01-14 10:50 Ratnadeep Joshi
  2008-01-14 17:20 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Ratnadeep Joshi @ 2008-01-14 10:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial, akpm

This patch tries to re-organize the macro expansion of PIDMAP_ENTRIES
(possibly) to a more clear one.

Thanks,
- Ratnadeep Joshi

diff --git a/include/linux/pid_namespace.h
b/include/linux/pid_namespace.h
index 1689e28..06e3e99 100644
--- a/include/linux/pid_namespace.h
+++ b/include/linux/pid_namespace.h
@@ -12,7 +12,7 @@ struct pidmap {
        void *page;
 };
 
-#define PIDMAP_ENTRIES         ((PID_MAX_LIMIT + 8*PAGE_SIZE -
1)/PAGE_SIZE/8)
+#define PIDMAP_ENTRIES         ((PID_MAX_LIMIT - 1)/PAGE_SIZE/8 + 1)
 
 struct pid_namespace {
 	struct kref kref;



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

end of thread, other threads:[~2008-01-14 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-14 10:50 [PATCH] Re-organization of PIDMAP_ENTRIES macro expansion Ratnadeep Joshi
2008-01-14 17:20 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome