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

Ben LaHaise (bcrl@redhat.com)
Sat, 30 Jun 2001 14:20:21 -0400 (EDT)


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/