]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Use list_head in binfmt handling
authorAlexey Dobriyan <adobriyan@sw.ru>
Wed, 17 Oct 2007 06:26:03 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:46 +0000 (08:42 -0700)
commite4dc1b14d8dc57c3975bf69740e4f5cda6bfba09
tree084771b19ecb4335c31cdd91093f7a02b7861e69
parentdeba0f49b9345f885a53a077623a68cef89c01d5
Use list_head in binfmt handling

Switch single-linked binfmt formats list to usual list_head's.  This leads
to one-liners in register_binfmt() and unregister_binfmt().  The downside
is one pointer more in struct linux_binfmt.  This is not a problem, since
the set of registered binfmts on typical box is very small -- (ELF +
something distro enabled for you).

Test-booted, played with executable .txt files, modprobe/rmmod binfmt_misc.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mips/kernel/irixelf.c
arch/sparc64/kernel/binfmt_aout32.c
fs/exec.c
include/linux/binfmts.h