linux/arch/mips
Vadim Lobanov bbea9f6966 [PATCH] fdtable: Make fdarray and fdsets equal in size
Currently, each fdtable supports three dynamically-sized arrays of data: the
fdarray and two fdsets.  The code allows the number of fds supported by the
fdarray (fdtable->max_fds) to differ from the number of fds supported by each
of the fdsets (fdtable->max_fdset).

In practice, it is wasteful for these two sizes to differ: whenever we hit a
limit on the smaller-capacity structure, we will reallocate the entire fdtable
and all the dynamic arrays within it, so any delta in the memory used by the
larger-capacity structure will never be touched at all.

Rather than hogging this excess, we shouldn't even allocate it in the first
place, and keep the capacities of the fdarray and the fdsets equal.  This
patch removes fdtable->max_fdset.  As an added bonus, most of the supporting
code becomes simpler.

Signed-off-by: Vadim Lobanov <vlobanov@speakeasy.net>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-10 09:57:22 -08:00
..
arc
au1000
basler/excite
boot
cobalt
configs [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
ddb5xxx
dec [MIPS] *-berr: Header inclusions for DEC bus error handlers 2006-12-06 20:16:09 +00:00
emma2rh [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
gt64120
jazz [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
jmr3927
kernel [PATCH] fdtable: Make fdarray and fdsets equal in size 2006-12-10 09:57:22 -08:00
lasat [PATCH] sysctl: remove unused "context" param 2006-12-10 09:55:41 -08:00
lib [MIPS] Optimize csum_partial for 64bit kernel 2006-12-09 01:03:59 +00:00
lib-32
lib-64
math-emu
mips-boards
mm [PATCH] Generic ioremap_page_range: mips conversion 2006-12-08 08:28:52 -08:00
momentum [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
oprofile
pci [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
philips/pnx8550 [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
pmc-sierra
qemu
sgi-ip22 [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
sgi-ip27 [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
sgi-ip32
sibyte
sni
tx4927 [MIPS] Add GENERIC_HARDIRQS_NO__DO_IRQ for i8259 users 2006-12-09 01:04:00 +00:00
tx4938 [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
vr41xx [MIPS] Add GENERIC_HARDIRQS_NO__DO_IRQ for i8259 users 2006-12-09 01:04:00 +00:00
defconfig [MIPS] Rename SNI_RM200_PCI to just SNI_RM preparing for more RM machines 2006-12-09 01:03:58 +00:00
Kconfig [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
Kconfig.debug
Makefile [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00