[PATCH] bogus fragment in fs/proc/generic.c in 2.4.6-pre8

From: Ben LaHaise (bcrl@redhat.com)
Date: Sat Jun 30 2001 - 13:20:21 EST


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;

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



This archive was generated by hypermail 2b29 : Sat Jun 30 2001 - 21:00:24 EST