09 Jan, 2006

40 commits

  • elv_try_last_merge().

    Signed-off-by: Coywolf Qi Hunt
    Signed-off-by: Jens Axboe

    Coywolf Qi Hunt
     
  • linux/blkdev.h included twice

    Signed-off-by: Nicolas Kaiser
    Signed-off-by: Jens Axboe

    Nicolas Kaiser
     
  • Linus Torvalds
     
  • This adds an option to remove vm86 support under CONFIG_EMBEDDED. Saves
    about 5k.

    This version eliminates most of the #ifdefs of the previous version and
    instead uses function stubs in vm86.h. Also, release_vm86_irqs is moved
    from asm-i386/irq.h to a more appropriate home in vm86.h so that the stubs
    can live together.

    $ size vmlinux-baseline vmlinux-novm86
    text data bss dec hex filename
    2920821 523232 190652 3634705 377611 vmlinux-baseline
    2916268 523100 190492 3629860 376324 vmlinux-novm86

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • configurable support for ELF core dumps

    text data bss dec hex filename
    3330172 529036 190556 4049764 3dcb64 vmlinux-baseline
    3325552 528912 190556 4045020 3db8dc vmlinux-no-elf

    add/remove: 0/8 grow/shrink: 0/0 up/down: 0/-4424 (-4424)
    function old new delta
    fill_note 32 - -32
    maydump 58 - -58
    dump_seek 67 - -67
    writenote 180 - -180
    elf_dump_thread_status 274 - -274
    fill_psinfo 308 - -308
    fill_prstatus 466 - -466
    elf_core_dump 3039 - -3039

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • Configurable 16-bit UID and friends support

    This allows turning off the legacy 16 bit UID interfaces on embedded platforms.

    text data bss dec hex filename
    3330172 529036 190556 4049764 3dcb64 vmlinux-baseline
    3328268 529040 190556 4047864 3dc3f8 vmlinux

    From: Adrian Bunk

    UID16 was accidentially disabled for !EMBEDDED.

    Signed-off-by: Matt Mackall
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • This adds configurable support for doublefault reporting on x86

    add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-13048 (-13048)
    function old new delta
    cpu_init 846 786 -60
    doublefault_fn 188 - -188
    doublefault_stack 4096 - -4096
    doublefault_tss 8704 - -8704

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • trivial: drop unused 802.3 code if we compile without IPX

    (originally from http://wohnheim.fh-wedel.de/~joern/software/kernel/je/25/)

    Signed-off-by: Matt Mackall
    Cc: "David S. Miller"
    Cc: Arnaldo Carvalho de Melo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • uninline some file locking functions

    add/remove: 3/0 grow/shrink: 0/15 up/down: 256/-1525 (-1269)
    function old new delta
    locks_free_lock - 134 +134
    posix_same_owner - 69 +69
    __locks_delete_block - 53 +53
    posix_locks_conflict 126 108 -18
    locks_remove_posix 266 237 -29
    locks_wake_up_blocks 121 87 -34
    locks_block_on_timeout 83 47 -36
    locks_insert_block 157 120 -37
    locks_delete_block 62 23 -39
    posix_unblock_lock 104 59 -45
    posix_locks_deadlock 162 100 -62
    locks_delete_lock 228 119 -109
    sys_flock 338 217 -121
    __break_lease 600 474 -126
    lease_init 252 122 -130
    fcntl_setlk64 793 649 -144
    fcntl_setlk 793 649 -144
    __posix_lock_file 1477 1026 -451

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • uninline a couple inode.c functions

    add/remove: 2/0 grow/shrink: 0/5 up/down: 256/-428 (-172)
    function old new delta
    ifind - 136 +136
    ifind_fast - 120 +120
    ilookup5_nowait 131 80 -51
    ilookup 158 71 -87
    ilookup5 171 80 -91
    iget_locked 190 95 -95
    iget5_locked 240 136 -104

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • uninline some open.c functions

    add/remove: 3/0 grow/shrink: 0/6 up/down: 679/-1166 (-487)
    function old new delta
    do_sys_truncate - 336 +336
    do_sys_ftruncate - 317 +317
    __put_unused_fd - 26 +26
    put_unused_fd 57 49 -8
    sys_close 150 119 -31
    sys_ftruncate64 260 26 -234
    sys_ftruncate 272 24 -248
    sys_truncate 339 25 -314
    sys_truncate64 336 5 -331

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • This is a rewrite of Andi Kleen's bloat-o-meter with sorting and reporting of
    gainers/decliners. Sample output:

    add/remove: 0/8 grow/shrink: 2/0 up/down: 88/-4424 (-4336)
    function old new delta
    __copy_to_user_ll 59 103 +44
    __copy_from_user_ll 59 103 +44
    fill_note 32 - -32
    maydump 58 - -58
    dump_seek 67 - -67
    writenote 180 - -180
    elf_dump_thread_status 274 - -274
    fill_psinfo 308 - -308
    fill_prstatus 466 - -466
    elf_core_dump 3039 - -3039

    The summary line says:
    no functions added, 8 removed
    two functions grew, none shrunk
    we gained 88 bytes and lost 4424 (or -4336 net)

    This work was sponsored in part by CE Linux Forum

    Signed-off-by: Matt Mackall
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • module_init functions must be tagged __init rather than __devinit; likewise,
    module_exit functions must be tagged __exit rather than __devexit.

    Signed-off-by: Jean Delvare
    Cc: Yoichi Yuasa
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • This sneaked in with one of the updates.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • It's not good if caller and callee disagree regarding the type of the
    arguments.

    In this case, this could cause problems on 64bit architectures.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Armin Schindler
    Cc: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Every file should #include the headers containing the prototypes for its
    global functions.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Armin Schindler
    Cc: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Factor out common code for different RUSAGE_xxx cases.

    Don't take ->sighand->siglock in RUSAGE_SELF case, suggested by Ravikiran G
    Thirumalai .

    Signed-off-by: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • Request the IRQ after having set everything up. Otherwise a shared interrupt
    at the right time can kill the machine.

    Found this with David Woodhouse 's
    debug-shared-irqs.patch.

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Signed-off-by: Ben Collins
    Cc: Sam Ravnborg
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Collins
     
  • Use first_cpu(cpu_possible_map) for the single-thread workqueue case. We
    used to hardcode 0, but that broke on systems where !cpu_possible(0) when
    workqueue_struct->cpu_workqueue_struct was changed from a static array to
    alloc_percpu.

    Commit id bce61dd49d6ba7799be2de17c772e4c701558f14 ("Fix hardcoded cpu=0 in
    workqueue for per_cpu_ptr() calls") fixed that for Ben's funky sparc64
    system, but it regressed my Power5. Offlining cpu 0 oopses upon the next
    call to queue_work for a single-thread workqueue, because now we try to
    manipulate per_cpu_ptr(wq->cpu_wq, 1), which is uninitialized.

    So we need to establish an unchanging "slot" for single-thread workqueues
    which will have a valid percpu allocation. Since alloc_percpu keys off of
    cpu_possible_map, which must not change after initialization, make this
    slot == first_cpu(cpu_possible_map).

    Signed-off-by: Nathan Lynch
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nathan Lynch
     
  • Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a
    duplicate of ARRAY_SIZE. Some trailing whitespaces are also removed.

    drivers/block/acsi* has been left out as it's marked BROKEN.

    Signed-off-by: Tobias Klauser
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tobias Klauser
     
  • Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • APM doesn't _need_ the PM_LEGACY junk, so remove it's dependancy from
    Kconfig, and ifdef the junk in the code. Whilst the ifdefs are ugly, when
    the legacy stuff gets ripped out so will the ifdefs.

    Signed-off-by: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • The CAPI message structs itself should be packed and not the location of
    single fields in the structure.

    Signed-off-by: Jan Blunck
    Acked-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Blunck
     
  • Remove the unnecessary __attribute__((packed)) since the enum itself is packed
    and not the location of it in the structure.

    Signed-off-by: Jan Blunck
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Blunck
     
  • Since version 4.1 the gcc is warning about ignored attributes. This patch is
    using the equivalent attribute on the struct instead of on each of the
    structure or union members.

    GCC Manual:
    "Specifying Attributes of Types

    packed
    This attribute, attached to struct or union type definition, specifies
    that
    each member of the structure or union is placed to minimize the memory
    required. When attached to an enum definition, it indicates that the
    smallest integral type should be used.

    Specifying this attribute for struct and union types is equivalent to
    specifying the packed attribute on each of the structure or union
    members."

    Signed-off-by: Jan Blunck
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Blunck
     
  • Earlier fix removed unused phase, but that changed the values for other
    phases. Since these are exposed to userspace through ppdev, it is safer
    not to change them. Restore the unused phase value.

    Signed-off-by: Marko Kohtala
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marko Kohtala
     
  • free_dma() isn't implemented on ARM unless HAS_DMA is set.

    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Adds a bit of text to Documentation/Codingstyle to state that inlining
    everything "just because" is a bad idea

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • pci.lst lists device 80862430 as another RNG

    # grep 80862430 /lib/discover/pci.lst
    80862430 bridge i810_rng 82801AB PCI Bridge

    but it's not listed in rng_pci_tbl[]

    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Van Buggenhaut
     
  • scripts/kconfig/qconf.h:25: error: extra qualification ‘ConfigSettings::’ on member ‘readSizes’
    scripts/kconfig/qconf.h:26: error: extra qualification ‘ConfigSettings::’ on member ‘writeSizes’
    scripts/kconfig/qconf.h:127: error: extra qualification ‘ConfigList::’ on member ‘updateMenuList’

    Signed-off-by: Dave Jones
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • - remove unnecessary -ENOMEM assignments
    - return correct value when buf_check_size for second time in a buffer
    - handle failures when create_workqueue and kthread_create are called
    - use kzalloc instead of kmalloc/memset 0
    - v9fs_str_copy and v9fs_str_compare were buggy, were used only in one
    place, correct the logic and move it to the place it is used.

    Signed-off-by: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Latchesar Ionkov
     
  • Performance enhancement reducing the number of copies in the data and
    stat paths.

    Signed-off-by: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Latchesar Ionkov
     
  • v9fs_create doesn't manage correctly the fids when it is called to create a
    directory.. The fid created by the create 9P call (newfid) and the one
    created by walking to already created file (wfidno) are not used
    consistently.

    This patch cleans up the usage of newfid and wfidno.

    Signed-off-by: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Latchesar Ionkov
     
  • New multiplexer implementation. Decreases the number of kernel threads
    required. Better handling when the user process receives a signal.

    Signed-off-by: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Latchesar Ionkov
     
  • If a 9pfs server crashes, v9fs_fd_close() is called. Subsequently, in
    cleaning up by performing a umount() on the FS that was provided by this
    server v9fs_fd_close() is called again, and uses the old, freed valus of
    trans->priv. This patch ensures that trans->priv can be freed only once,
    otherwise this function bails early.

    Signed-off-by: Michal Ostrowski
    Signed-off-by: Eric Van Hensbergen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Van Hensbergen
     
  • This makes it possible for boot code to use screen_info without dragging in
    all of tty.h.

    Signed-off-by: Brian Gerst
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Gerst
     
  • Add EMAC to my CREDITS entry.

    Signed-off-by: Eugene Surovegin
    Signed-off-by: Linus Torvalds

    Eugene Surovegin
     
  • Add desired 'diffstat' options to use for kernel patches.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Signed-off-by: Evgeniy Polyakov
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov