1. 19 Apr, 2004 12 commits
    • Andrew Morton's avatar
      [PATCH] m68knommu stack bounds checking · 34f77ac0
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      The stack is now shared with struct thread_info on most arches, not task_t.
      This mostly affects get_wchan() and stack usage debug.
      34f77ac0
    • Andrew Morton's avatar
      [PATCH] m68k stack bounds checking · 6fd0e105
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      The stack is now shared with struct thread_info on most arches, not task_t.
      This mostly affects get_wchan() and stack usage debug.
      6fd0e105
    • Andrew Morton's avatar
      [PATCH] h8300 stack bounds checking · 8e9b32e7
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      The stack is now shared with struct thread_info on most arches, not task_t.
      This mostly affects get_wchan() and stack usage debug.
      8e9b32e7
    • Andrew Morton's avatar
      [PATCH] From: David Gibson <david@gibson.dropbear.id.au> · 49c18faa
      Andrew Morton authored
      hugepage_vma() is both misleadingly named and unnecessary.  On most archs it
      always returns NULL, and on IA64 the vma it returns is never used.  The
      function's real purpose is to determine whether the address it is passed is a
      special hugepage address which must be looked up in hugepage pagetables,
      rather than being looked up in the normal pagetables (which might have
      specially marked hugepage PMDs or PTEs).
      
      This patch kills off hugepage_vma() and folds the logic it really needs into
      follow_huge_addr().  That now returns a (page *) if called on a special
      hugepage address, and an error encoded with ERR_PTR otherwise.  This also
      requires tweaking the IA64 code to check that the hugepage PTE is present in
      follow_huge_addr() - previously this was guaranteed, since it was only called
      if the address was in an existing hugepage VMA, and hugepages are always
      prefaulted.
      49c18faa
    • Andrew Morton's avatar
      [PATCH] Fix default value for commit interval for older reiserfs filesystems. · 3d9d1320
      Andrew Morton authored
      From: Bart Samwel <bart@samwel.tk>
      
      The reiserfs patch that adds support for "commit=0" saves the default max
      commit age in a variable when the fs is originally mounted, so that it can
      later restore it.  Unfortunately it makes some mistakes with that:
      
      - The default is not saved when the original mount has a commit=NNN option.
      
      - The default is not correctly saved for older reiserfs filesystems, where
        the default was not stored on disk.
      
      This patch fixes these mistakes.
      3d9d1320
    • Andrew Morton's avatar
      [PATCH] direct-IO return type fixes · 59fed502
      Andrew Morton authored
      From: me, Badari Pulavarty <pbadari@us.ibm.com>
      
      Currently a direct-IO read or write of more than 2G on 64-bit machines is
      broken.  Replace int with ssize_t in various places to fix that up.
      59fed502
    • Andrew Morton's avatar
      [PATCH] Increase number of dynamic inodes in procfs · fdc51945
      Andrew Morton authored
      From: Nathan Lynch <nathanl@austin.ibm.com>
      
      On some larger ppc64 configurations /proc/device-tree is exhausting procfs'
      dynamic (non-pid) inode range (16K).  This patch makes the dynamic inode
      range 0xf0000000-0xffffffff and changes the inode number allocator to use
      the idr.c allocator for the first-fit allocations.
      fdc51945
    • Andrew Morton's avatar
      [PATCH] fix load_elf_binary error path on unshare_files error · 178036e3
      Andrew Morton authored
      From: Chris Wright <chrisw@osdl.org>
      
      Make sure to return proper retval on unshare_files() error in load_elf_binary.
      
      Error noted by Kirill Korotaev <kirillx@7ka.mipt.ru>.
      178036e3
    • Andrew Morton's avatar
      [PATCH] idr.c: extra features enhancements · 8cc89540
      Andrew Morton authored
      From: Jim Houston <jim.houston@comcast.net>
      
      - Adds idr_get_new_above(), whihc permits us to do a first-fit search
        from a specified offset rather than always from zero.
      
      - Add IDR_INIT() DEFINE_IDR() constructors.  Often idr's are singletons
        and having to cook up an initcall for them is a pain.
      
      This is needed by the "Increase number of dynamic inodes in procfs" patch.
      8cc89540
    • Andrew Morton's avatar
      [PATCH] Rename PF_IOTHREAD to PF_NOFREEZE · ef29bf03
      Andrew Morton authored
      From: Nigel Cunningham <ncunningham@users.sourceforge.net>
      
      A few weeks ago, Pavel and I agreed that PF_IOTHREAD should be renamed to
      PF_NOFREEZE.  This reflects the fact that some threads so marked aren't
      actually used for IO while suspending, but simply shouldn't be frozen.
      This patch, against 2.6.5 vanilla, applies that change.  In the
      refrigerator calls, the actual value doesn't matter (so long as it's
      non-zero) and it makes more sense to use PF_FREEZE so I've used that.
      ef29bf03
    • Andrew Morton's avatar
      [PATCH] CPU_MASK_ALL fix · 8488dd95
      Andrew Morton authored
      From: Nick Piggin <nickpiggin@yahoo.com.au>
      
      Do the typecast thing to permit CPU_MASK_ALL to be used both as an
      initialiser and as a normal rvalue.
      8488dd95
    • Andrew Morton's avatar
      [PATCH] ppc/ppc64: Add posix message queue syscalls · eeb3e3b9
      Andrew Morton authored
      From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      
      This patch adds the posix message queue syscalls to ppc32 and 64 and fixes
      our implementation of compat copy siginfo to 32 bits userland which wasn't
      using the si_code but still doing a switch/case on the signal number.
      
      I also reserved some syscalls for the numa API
      eeb3e3b9
  2. 18 Apr, 2004 21 commits
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk · d5b1f484
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      d5b1f484
    • Russell King's avatar
      [ARM] Clean up ARM includes · 53bfadf7
      Russell King authored
      This removes a number of unnecessary includes from the ARM specific
      files throughout the kernel.  Most notably asm/pgalloc.h is
      needlessly included in several places.  There were some places
      including it as a means to get at the cache flushing functions,
      so this has been corrected.
      53bfadf7
    • Benjamin Herrenschmidt's avatar
      [PATCH] Fix typo in previous patch · a5d43dcf
      Benjamin Herrenschmidt authored
      This is my brown paper bag day, I sent you the wrong patch for
      fixing the deadlock in rtas.c, here's one to apply on top of current
      bk that fixes build.
      a5d43dcf
    • Linus Torvalds's avatar
      3fd2eaad
    • Geert Uytterhoeven's avatar
      [PATCH] Amiga Zorro8390 Ethernet KERN_* · 29f9b4d8
      Geert Uytterhoeven authored
      Amiga Zorro8390 Ethernet: Add KERN_* prefixes to printk() messages
      29f9b4d8
    • Geert Uytterhoeven's avatar
      [PATCH] Amiga Hydra Ethernet KERN_* · 0243dbb6
      Geert Uytterhoeven authored
      Amiga Hydra Ethernet: Add KERN_* prefixes to printk() messages
      0243dbb6
    • Geert Uytterhoeven's avatar
      [PATCH] Amiga Ariadne Ethernet KERN_* · d79459da
      Geert Uytterhoeven authored
      Amiga Ariadne Ethernet: Add KERN_* prefixes to printk() messages
      d79459da
    • Geert Uytterhoeven's avatar
      [PATCH] Amiga A2065 Ethernet debug · c934f504
      Geert Uytterhoeven authored
      Amiga A2065 Ethernet: Add missing variable in debug code
      c934f504
    • Andrew Morton's avatar
      [PATCH] fix visws build · 2b2f6d9a
      Andrew Morton authored
      From: Andrey Panin <pazke@donpac.ru>
      
      this small patch fixes visws build error in 2.6.5.
      2b2f6d9a
    • Andrew Morton's avatar
      [PATCH] Fix laptop mode writeback triggered by hdparm -y. · 247aea28
      Andrew Morton authored
      From: Bart Samwel <bart@samwel.tk>
      
      Currently, an `hdparm -Y' can trigger a sync in laptop mode.  We should
      only count fs-originated requests as being "disk activity".
      247aea28
    • Andrew Morton's avatar
      [PATCH] set_anon_super locking fix · 4e79ee42
      Andrew Morton authored
      Take the idr's lock while removing an element on the error path.  Spotted by
      Nathan Lynch <nathanl@austin.ibm.com>.
      4e79ee42
    • Andrew Morton's avatar
      [PATCH] Print warning for common symbols in modules · 8eeff89b
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      People still build modules wrong, particularly without -fno-common.  The
      resulting modules don't load, but we should at least warn about it.
      8eeff89b
    • Andrew Morton's avatar
      [PATCH] jbd: journal_dirty_metadata locking speedup · 2c941f77
      Andrew Morton authored
      Reduce the locking coverage of the oft-used j_list_lock: the per-bh
      jbd_lock_bh_state() gives us sufficient locking of buffer_head and
      journal_head internals.
      2c941f77
    • Andrew Morton's avatar
      [PATCH] rmap: nonlinear truncation · dd9fd0e0
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      The earlier changes introducing PageAnon left truncated pages mapped into
      nonlinear vmas unswappable.  Once we go to object-based rmap, it's
      impossible to find where file page is mapped once page->mapping cleared:
      switching them to anonymous is odd, and breaks strict commit accounting.
      
      So now handle truncation of nonlinear vmas correctly.  And factor in
      Daniel's cluster filesystem needs while we're there: when invalidating
      local cache, we do want to unmap shared pages from all mms, but we do not
      want to discard private COWed modifications of those pages (which
      truncation discards to satisfy the SIGBUS semantics demanded by specs).
      
      Drew from Daniel's patch (LKML 2 Mar 04), but didn't always follow it;
      fewer name changes, but still some - "unmap" rather than "invalidate".
      zap_page_range is not exported, safe to give it and all the too-many layers
      an extra zap_details arg, in normal cases just NULL.
      
      Given details, zap_pte_range checks page mapping or index to skip anon or
      untruncated pages.  I didn't realize before implementing, that in nonlinear
      case, it should set a file pte when truncating - otherwise linear pages
      might appear in place of SIGBUS.  I suspect this implies that ->populate
      functions ought to set file ptes beyond EOF instead of failing, but haven't
      changed them as yet.
      
      To avoid making yet another copy of that ugly linear pgidx test, added
      inline function linear_page_index (to pagemap.h to get PAGE_CACHE_SIZE,
      though as usual things don't really work if it differs from PAGE_SIZE). 
      Ooh, I thought I'd removed ___add_to_page_cache last time, do so now.
      
      unmap_page_range static, shift its hugepage check up into sole caller
      unmap_vmas.  Killed "killme" debug from unmap_vmas, not seen it trigger.
      unmap_mapping_range is exported without restriction: I'm one of those who
      believe it should be generally available.  But I'm wrongly placed to decide
      that, probably just sob quietly to myself if _GPL added later.
      dd9fd0e0
    • Andrew Morton's avatar
      [PATCH] rmap: swap_unplug page · 3df9aaf3
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Good example of "swapper_space considered harmful": swap_unplug_io_fn was
      originally designed for calling via swapper_space.backing_dev_info; but
      that way it loses track of which device is to be unplugged, so had to
      unplug all swap devices.  But now sync_page tests SwapCache anyway, can
      call swap_unplug_io_fn with page, which leads direct to the device.
      
      Reverted -mc4's CONFIG_SWAP=n fix, just add another NOTHING for it.
      Reverted -mc3's editorial adjustments to swap_backing_dev_info and
      swapper_space initializations: they document the few fields which are
      actually used now, as comment above them says (sound of slapped wrist).
      3df9aaf3
    • Andrew Morton's avatar
      [PATCH] rmap: flush_dcache revisited · c4d92e6b
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      One of the callers of flush_dcache_page is do_generic_mapping_read, where
      file is read without i_sem and without page lock: concurrent truncation may
      at any moment remove page from cache, NULLing ->mapping, making
      flush_dcache_page liable to oops.  Put result of page_mapping in a local
      variable and apply mapping_mapped to that (if we were to check for NULL
      within mapping_mapped, it's unclear whether to say yes or no).
      
      parisc and arm do have other locking unsafety in their i_mmap(_shared)
      searching, but that's a larger issue to be dealt with down the line.
      c4d92e6b
    • Andrew Morton's avatar
      [PATCH] Oprofilefs cant handle > 99 cpus · 1896ae13
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Oprofilefs cant handle > 99 cpus. This should fix it.
      1896ae13
    • Andrew Morton's avatar
      [PATCH] Fix unix module · 17ee20ae
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      # lsmod
      Module                  Size  Used by
      1                      26060  6
      #
      
      The compiler #define's unix to 1: we use -DKBUILD_MODNAME=unix.  We used to
      #undef unix at the top of af_unix.c, but now the name is inserted by
      modpost, that doesn't help.
      
      #undef unix in modpost.c's generated C file.
      17ee20ae
    • Andrew Morton's avatar
      [PATCH] ppc64: Fix CPU hot unplug deadlock · 26214e32
      Andrew Morton authored
      From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      
      My RTAS locking fixes incorrectly added a spinlock around the function used
      to stop a CPU, that function never returns, thus the lock becomes stale.
      The correct fix is to disable interrupts instead (the RTAS params beeing
      per-CPU, this should be safe enough)
      26214e32
    • Linus Torvalds's avatar
      Allow non-LFS sendfile to work on LFS files. · f5e277c5
      Linus Torvalds authored
      But obviously only if we're not passing in any offset pointer.
      
      This is how 2.4.x worked, and vsftpd relies on it.
      
      Bug reported by Chris < chris@scary.beasts.org>
      f5e277c5
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/davem/BK/net-2.6 · a9eb9eb7
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      a9eb9eb7
  3. 17 Apr, 2004 7 commits