29 Mar, 2006

40 commits

  • They deal with wrapping correctly and are nicer to read.

    Signed-off-by: Marcelo Feitoza Parisi
    Signed-off-by: Alexey Dobriyan
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcelo Feitoza Parisi
     
  • They deal with wrapping correctly and are nicer to read.

    Signed-off-by: Marcelo Feitoza Parisi
    Signed-off-by: Alexey Dobriyan
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcelo Feitoza Parisi
     
  • It deals with wrapping correctly and is nicer to read.

    Signed-off-by: Marcelo Feitoza Parisi
    Signed-off-by: Alexey Dobriyan
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcelo Feitoza Parisi
     
  • They deal with wrapping correctly and are nicer to read.

    Signed-off-by: Marcelo Feitoza Parisi
    Signed-off-by: Alexey Dobriyan
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcelo Feitoza Parisi
     
  • Nowadays, even Debian stable ships a microcode_ctl utility recent enough to no
    longer use this ioctl.

    Signed-off-by: Adrian Bunk
    Acked-by: Tigran Aivazian
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Add missing files and descriptions to
    Documentation/filesystems/00-INDEX

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

    Jesper Juhl
     
  • This is a conversion to make the various file_operations structs in fs/
    const. Basically a regexp job, with a few manual fixups

    The goal is both to increase correctness (harder to accidentally write to
    shared datastructures) and reducing the false sharing of cachelines with
    things that get dirty in .data (while .rodata is nicely read only and thus
    cache clean)

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

    Arjan van de Ven
     
  • Mark the f_ops members of inodes as const, as well as fix the
    ripple-through this causes by places that copy this f_ops and then "do
    stuff" with it.

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

    Arjan van de Ven
     
  • Tweak the proc setup code so things work OK with const
    proc_dir_entry.proc_fops.

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

    Andrew Morton
     
  • Replace for_each_cpu with for_each_possible_cpu.

    Modifies occurences in documentaion.

    for_each_cpu in whatisRCU.txt should be for_each_online_cpu ???
    (I'm not sure..)

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

    KAMEZAWA Hiroyuki
     
  • This patch replaces for_each_cpu with for_each_possible_cpu.

    under arch/i386.

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

    KAMEZAWA Hiroyuki
     
  • This patch replaces for_each_cpu with for_each_possible_cpu.

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

    KAMEZAWA Hiroyuki
     
  • This patch replaces for_each_cpu with for_each_possible_cpu.

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

    KAMEZAWA Hiroyuki
     
  • replaces for_each_cpu with for_each_possible_cpu().

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

    KAMEZAWA Hiroyuki
     
  • for_each_cpu() is a for-loop over cpu_possible_map. for_each_online_cpu is
    for-loop cpu over cpu_online_map. .....for_each_cpu() is not sufficiently
    explicit and can lead to mistakes.

    This patch adds for_each_possible_cpu() in preparation for the removal of
    for_each_cpu().

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

    KAMEZAWA Hiroyuki
     
  • Remove an unnecessary level of indirection in allocating and freeing select
    bits, as per the select_bits_alloc() and select_bits_free() functions.
    Both select.c and compat.c are updated.

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

    Vadim Lobanov
     
  • Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Dumazet
     
  • Optimize select and poll by a using stack space for small fd sets

    This brings back an old optimization from Linux 2.0. Using the stack is
    faster than kmalloc. On a Intel P4 system it speeds up a select of a
    single pty fd by about 13% (~4000 cycles -> ~3500)

    It also saves memory because a daemon hanging in select or poll will
    usually save one or two less pages. This can add up - e.g. if you have 10
    daemons blocking in poll/select you save 40KB of memory.

    I did a patch for this long ago, but it was never applied. This version is
    a reimplementation of the old patch that tries to be less intrusive. I
    only did the minimal changes needed for the stack allocation.

    The cut off point before external memory is allocated is currently at
    832bytes. The system calls always allocate this much memory on the stack.

    These 832 bytes are divided into 256 bytes frontend data (for the select
    bitmaps of the pollfds) and the rest of the space for the wait queues used
    by the low level drivers. There are some extreme cases where this won't
    work out for select and it falls back to allocating memory too early -
    especially with very sparse large select bitmaps - but the majority of
    processes who only have a small number of file descriptors should be ok.
    [TBD: 832/256 might not be the best split for select or poll]

    I suspect more optimizations might be possible, but they would be more
    complicated. One way would be to cache the select/poll context over
    multiple system calls because typically the input values should be similar.
    Problem is when to flush the file descriptors out though.

    Signed-off-by: Andi Kleen
    Cc: Eric Dumazet
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • drivers/ide/pci/generic.c:45: warning: `ide_generic_all_on' defined but not used

    Cc: Bartlomiej Zolnierkiewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Some quick backport bits from the libata PATA work to fix things found in
    the sis driver. The piix driver needs some fixes too but those are way to
    large and need someone working on old IDE with time to do them.

    This patch fixes the case where random bits get loaded into SIS timing
    registers according to the description of the correct behaviour from
    Vojtech Pavlik. It also adds the SiS5517 ATA16 chipset which is not
    currently supported by the driver. Thanks to Conrad Harriss for loaning me
    the machine with the 5517 chipset.

    Signed-off-by: Alan Cox
    Acked-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • >From http://marc.theaimsgroup.com/?l=linux-kernel&m=110304128900342&w=2

    AMD756 doesn't support host side cable detection. Do disk side only and
    don't advice obsolete options.

    Acked-by: Bartlomiej Zolnierkiewicz
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rene Herman
     
  • Add a proper prototype for autofs4_dentry_release() to autofs_i.h.

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

    Adrian Bunk
     
  • A size_t can't be < 0.

    (akpm: and rw_verify_area() already did that check)

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

    Alexey Dobriyan
     
  • This is obsolete.

    Cc: Tom Zanussi
    Cc: Jens Axboe
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • I noticed that my email address is four jobs ago.

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

    Philip Gladstone
     
  • Add proper prototypes for fat_cache_init() and fat_cache_destroy() in
    msdos_fs.h.

    Signed-off-by: Adrian Bunk
    Acked-by: OGAWA Hirofumi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • The Coverity checker found this off-by-one error.

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

    Adrian Bunk
     
  • Since dash2underscore() just operates and returns chars, I guess its safe
    to change the return value to a char. With my .config, this reduces its
    size by 5 bytes.

    text data bss dec hex filename
    4155 152 0 4307 10d3 params.o.orig
    4150 152 0 4302 10ce params.o

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sesterhenn
     
  • (akpm: I don't do comment typos patches. This one snuck through by accident)

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

    Serge E. Hallyn
     
  • Renumber the recently-added POLLREMOVE and POLLRDHUP to line up with the other
    architectures.

    Cc: Davide Libenzi
    Cc: Ulrich Drepper
    Cc: Ivan Kokshaysky
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • On ppc64 we look at a profiling register to work out the sample address and
    if it was in userspace or kernel.

    The backtrace interface oprofile_add_sample does not allow this. Create
    oprofile_add_ext_sample and make oprofile_add_sample use it too.

    Signed-off-by: Anton Blanchard
    Cc: Philippe Elie
    Cc: John Levon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Rogan
     
  • gcc-4.2:

    kernel/module.c: In function '__find_symbol':
    kernel/module.c:158: warning: the address of '__start___kcrctab', will always evaluate as 'true'
    kernel/module.c:165: warning: the address of '__start___kcrctab_gpl', will always evaluate as 'true'
    kernel/module.c:182: warning: the address of '__start___kcrctab_gpl_future', will always evaluate as 'true'

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

    Andrew Morton
     
  • If the user specified `major=0' (odd thing to do), capi.c will use dynamic
    allocation. We need to pick up that major for subsequent unregister_chrdev().

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

    Andrew Morton
     
  • If the user specified `major=0' (odd thing to do), pt.c will use dynamic
    allocation. We need to pick up that major for subsequent unregister_chrdev().

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

    Andrew Morton
     
  • If the user specified `major=0' (odd thing to do), pg.c will use dynamic
    allocation. We need to pick up that major for subsequent unregister_chrdev().

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

    Andrew Morton
     
  • It's purely cosmetic, but with the patch there's no longer a
    BLK_DEV_RAM_COUNT setting in the .config if BLK_DEV_RAM=n.

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

    Adrian Bunk
     
  • Remove code in async receive handling that serves no purpose with new tty
    receive buffering. Previously this code tried to free up receive buffer
    space, but now does nothing useful while making expensive calls.

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

    Paul Fulghum
     
  • Add driver support for general purpose I/O feature of the Synclink GT
    adapters.

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

    Paul Fulghum
     
  • Remove dead code from synclink driver. This was used previously when the
    write method had a from_user flag, which has been removed.

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

    Paul Fulghum
     
  • Now that Christoph Lameter's atomic_long_t support is merged in mainline,
    might as well convert asm-generic/local.h to use it, so the same code can
    be used for both sizes of 32 and 64-bit unsigned longs.

    akpm sayeth:

    Q:

    Is there any particular reason why these routines weren't simply
    implemented with local_save/restore_flags, if they are only meant to
    guarantee atomicity to the local cpu? I'm sure on most platforms this
    would be more efficient than using an atomic...

    A:

    The whole _point_ of local_t is to avoid local_irq_disable(). It's
    designed to exploit the fact that many CPUs can do incs and decs in a way
    which is atomic wrt local interrupts, but not atomic wrt SMP.

    But this patch makes sense, because asm-generic/local.h is just a fallback
    implementation for architectures which either cannot perform these
    local-irq-atomic operations, or its maintainers haven't yet got around to
    implementing them.

    We need more work done on local_t in the 2.6.17 timeframe - they're defined as
    unsigned long, but some architectures implement them as signed long.

    Signed-off-by: Kyle McMartin
    Cc: Benjamin LaHaise
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyle McMartin