linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bogus fragment in fs/proc/generic.c in 2.4.6-pre8
@ 2001-06-30 18:20 Ben LaHaise
  0 siblings, 0 replies; only message in thread
From: Ben LaHaise @ 2001-06-30 18:20 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Heyo,

This patch removes an unneeded 4x or 8x bloat in the size of
proc_alloc_map that was introduced in the pre8 patch.

		-ben

diff -urN /md0/kernels/2.4/v2.4.6-pre8/fs/proc/generic.c work/fs/proc/generic.c
--- /md0/kernels/2.4/v2.4.6-pre8/fs/proc/generic.c	Sat Jun 30 14:04:27 2001
+++ work/fs/proc/generic.c	Sat Jun 30 14:16:39 2001
@@ -190,7 +190,7 @@
 	return 0;
 }

-static unsigned long proc_alloc_map[PROC_NDYNAMIC / 8];
+static unsigned long proc_alloc_map[(PROC_NDYNAMIC + BITS_PER_LONG - 1) / BITS_PER_LONG];

 spinlock_t proc_alloc_map_lock = SPIN_LOCK_UNLOCKED;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-30 18:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-30 18:20 [PATCH] bogus fragment in fs/proc/generic.c in 2.4.6-pre8 Ben LaHaise

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).