android_kernel_xiaomi_sdm845/arch/mips/kernel
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
..
apm.c [MIPS] Don't include obsolete <linux/config.h>. 2006-07-13 21:25:58 +01:00
asm-offsets.c [MIPS] 16K & 64K page size fixes 2006-11-01 17:46:09 +00:00
binfmt_elfn32.c [PATCH] elf: Always define elf_addr_t in linux/elf.h 2006-12-07 08:39:38 -08:00
binfmt_elfo32.c [PATCH] elf: Always define elf_addr_t in linux/elf.h 2006-12-07 08:39:38 -08:00
branch.c [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
cpu-bugs64.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cpu-probe.c [MIPS] Don't print presence of WAIT instruction on bootup. 2006-11-30 01:14:44 +00:00
entry.S [MIPS] SMTC: Fix crash if # of TC's > # of VPE's after pt_regs irq cleanup. 2006-11-01 17:46:09 +00:00
gdb-low.S [MIPS] TRACE_IRQFLAGS_SUPPORT support. 2006-07-13 21:26:09 +01:00
gdb-stub.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
genex.S [MIPS] Fast path for rdhwr emulation for TLS 2006-11-30 01:14:44 +00:00
head.S [MIPS] Qemu now has an ELF loader. 2006-12-09 01:04:00 +00:00
i8253.c Input: pcspkr - separate device and driver registration 2006-03-14 00:11:50 -05:00
i8259.c [MIPS] Import updates from i386's i8259.c 2006-12-06 20:16:09 +00:00
init_task.c [PATCH] nsproxy: move init_nsproxy into kernel/nsproxy.c 2006-10-02 07:57:20 -07:00
irix5sys.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irixelf.c [PATCH] add process_session() helper routine 2006-12-08 08:28:51 -08:00
irixinv.c Sparseify MIPS. 2005-10-29 19:30:50 +01:00
irixioctl.c Reformatting, remove debugging code. 2005-10-29 19:30:57 +01:00
irixsig.c [MIPS] Move definition of IRIX compat constant into IRIX compat code. 2006-09-27 13:37:45 +01:00
irq_cpu.c [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
irq-msc01.c [MIPS] use generic_handle_irq, handle_level_irq, handle_percpu_irq 2006-11-30 01:14:46 +00:00
irq-mv6434x.c [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
irq-rm7000.c [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
irq-rm9000.c [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
irq.c [MIPS] genirq: use name instead of typename 2006-12-06 20:16:08 +00:00
kspd.c [PATCH] fdtable: Make fdarray and fdsets equal in size 2006-12-10 09:57:22 -08:00
linux32.c [MIPS] Use SYSVIPC_COMPAT to fix various problems on N32 2006-12-04 22:43:12 +00:00
machine_kexec.c [MIPS] Add support for kexec 2006-11-30 01:14:44 +00:00
Makefile [MIPS] Remove duplicate ISA DMA code for 0 DMA channel case. 2006-11-30 01:14:51 +00:00
mips_ksyms.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mips-mt.c [MIPS] MIPS MT: Fix build error. 2006-07-13 21:26:06 +01:00
module.c [MIPS] Load modules to CKSEG0 if CONFIG_BUILD_ELF64=n 2006-11-30 01:14:44 +00:00
proc.c [MIPS] Make sure cpu_has_fpu is used only in atomic context 2006-10-09 23:20:48 +01:00
process.c [MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup() 2006-10-19 17:55:12 +01:00
ptrace32.c [MIPS] Make sure cpu_has_fpu is used only in atomic context 2006-10-09 23:20:48 +01:00
ptrace.c [MIPS] Make sure cpu_has_fpu is used only in atomic context 2006-10-09 23:20:48 +01:00
r4k_fpu.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
r4k_switch.S [MIPS] 16K & 64K page size fixes 2006-11-01 17:46:09 +00:00
r2300_fpu.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
r2300_switch.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
r6000_fpu.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
relocate_kernel.S [MIPS] Add support for kexec 2006-11-30 01:14:44 +00:00
reset.c [MIPS] Rename _machine_power_off to pm_power_off so the kernel builds again. 2006-02-07 13:30:22 +00:00
rtlx.c [PATCH] struct path: convert mips 2006-12-08 08:28:47 -08:00
scall32-o32.S [MIPS] Add support for kexec 2006-11-30 01:14:44 +00:00
scall64-64.S [MIPS] Add support for kexec 2006-11-30 01:14:44 +00:00
scall64-n32.S [MIPS] Use SYSVIPC_COMPAT to fix various problems on N32 2006-12-04 22:43:12 +00:00
scall64-o32.S [MIPS] Add support for kexec 2006-11-30 01:14:44 +00:00
semaphore.c Always use ".set mips3" rather than select between "mips2" or "mips3" 2005-10-29 19:31:31 +01:00
setup.c [MIPS] setup.c: clean up initrd related code 2006-11-30 01:14:42 +00:00
signal32.c [MIPS] Avoid double signal restarting. 2006-09-27 13:37:33 +01:00
signal_n32.c [MIPS] Fix double inclusions 2006-11-30 01:14:47 +00:00
signal-common.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
signal.c [MIPS] Avoid double signal restarting. 2006-09-27 13:37:33 +01:00
smp-mt.c [MIPS] use generic_handle_irq, handle_level_irq, handle_percpu_irq 2006-11-30 01:14:46 +00:00
smp.c [MIPS] Cleanup memory barriers for weakly ordered systems. 2006-12-04 22:43:14 +00:00
smtc-asm.S [MIPS] SMTC: Fix crash if # of TC's > # of VPE's after pt_regs irq cleanup. 2006-11-01 17:46:09 +00:00
smtc-proc.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
smtc.c [MIPS] use generic_handle_irq, handle_level_irq, handle_percpu_irq 2006-11-30 01:14:46 +00:00
stacktrace.c [MIPS] save_context_stack fix 2006-10-19 17:55:13 +01:00
syscall.c [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
sysirix.c [PATCH] struct path: convert mips 2006-12-08 08:28:47 -08:00
time.c [MIPS] mips HPT cleanup: make clocksource_mips public 2006-11-30 01:14:49 +00:00
topology.c [MIPS] Do topology_init even on uniprocessor kernels. 2006-11-29 16:21:34 +00:00
traps.c [MIPS] Use conditional traps for BUG_ON on MIPS II and better. 2006-11-30 01:14:50 +00:00
unaligned.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
vmlinux.lds.S [MIPS] 16K & 64K page size fixes 2006-11-01 17:46:09 +00:00
vpe.c [PATCH] struct path: convert mips 2006-12-08 08:28:47 -08:00