1. 25 Jun, 2006 9 commits
    • Christoph Lameter's avatar
      [PATCH] Allow migration of mlocked pages · e6a1530d
      Christoph Lameter authored
      Hugh clarified the role of VM_LOCKED.  So we can now implement page
      migration for mlocked pages.
      
      Allow the migration of mlocked pages.  This means that try_to_unmap must
      unmap mlocked pages in the migration case.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Acked-by: default avatarHugh Dickins <hugh@veritas.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      e6a1530d
    • Christoph Lameter's avatar
      [PATCH] page migration: Support a vma migration function · 7b2259b3
      Christoph Lameter authored
      Hooks for calling vma specific migration functions
      
      With this patch a vma may define a vma->vm_ops->migrate function.  That
      function may perform page migration on its own (some vmas may not contain page
      structs and therefore cannot be handled by regular page migration.  Pages in a
      vma may require special preparatory treatment before migration is possible
      etc) .  Only mmap_sem is held when the migration function is called.  The
      migrate() function gets passed two sets of nodemasks describing the source and
      the target of the migration.  The flags parameter either contains
      
      MPOL_MF_MOVE	which means that only pages used exclusively by
      		the specified mm should be moved
      
      or
      
      MPOL_MF_MOVE_ALL which means that pages shared with other processes
      		should also be moved.
      
      The migration function returns 0 on success or an error condition.  An error
      condition will prevent regular page migration from occurring.
      
      On its own this patch cannot be included since there are no users for this
      functionality.  But it seems that the uncached allocator will need this
      functionality at some point.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Cc: Hugh Dickins <hugh@veritas.com>
      Cc: Andi Kleen <ak@muc.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      7b2259b3
    • Christoph Lameter's avatar
      [PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM · 68402ddc
      Christoph Lameter authored
      Remove VM_LOCKED before remap_pfn range from device drivers and get rid of
      VM_SHM.
      
      remap_pfn_range() already sets VM_IO.  There is no need to set VM_SHM since
      it does nothing.  VM_LOCKED is of no use since the remap_pfn_range does not
      place pages on the LRU.  The pages are therefore never subject to swap
      anyways.  Remove all the vm_flags settings before calling remap_pfn_range.
      
      After removing all the vm_flag settings no use of VM_SHM is left.  Drop it.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Acked-by: default avatarHugh Dickins <hugh@veritas.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      68402ddc
    • Zach Brown's avatar
      [PATCH] AOP_TRUNCATED_PAGE victims in read_pages() belong in the LRU · 9f1a3cfc
      Zach Brown authored
      AOP_TRUNCATED_PAGE victims in read_pages() belong in the LRU
      
      Nick Piggin rightly pointed out that the introduction of AOP_TRUNCATED_PAGE
      to read_pages() was wrong to leave A_T_P victim pages in the page cache but
      not put them in the LRU.  Failing to do so hid them from the VM.
      
      A_T_P just means that the aop method unlocked the page rather than
      performing IO.  It would be very rare that the page was truncated between
      the unlock and testing A_T_P.  So we leave the pages in the LRU for likely
      reuse soon rather than backing them back out of the page cache.  We do this
      by matching the behaviour before the A_T_P introduction which added pages
      to the LRU regardless of what ->readpage() did.
      
      This doesn't include the unrelated cleanup in Nick's initial fix which
      changed read_pages() to return void to match its only caller's behaviour of
      ignoring errors.
      Signed-off-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
      Signed-off-by: default avatarZach Brown <zach.brown@oracle.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      9f1a3cfc
    • Stefan Richter's avatar
      [PATCH] ieee1394: nodemgr: do not peek into struct semaphore · 09a9a45d
      Stefan Richter authored
      Also revert patch "frv: ieee1394 is borken on frv", as it no longer is.
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Jody McIntyre <scjody@modernduck.com>
      Cc: Ben Collins <bcollins@ubuntu.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      09a9a45d
    • Andrew Morton's avatar
      [PATCH] remove for_each_cpu() · fb1bb34d
      Andrew Morton authored
      Convert a few stragglers over to for_each_possible_cpu(), remove
      for_each_cpu().
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      fb1bb34d
    • Andrew Morton's avatar
      [PATCH] more for_each_cpu() removal · 1e48275a
      Andrew Morton authored
      It's going away.
      
      I wonder if this code really meant to iterate across not-present, not-online
      CPUs.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      1e48275a
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · dfd8317d
      Linus Torvalds authored
      * master.kernel.org:/home/rmk/linux-2.6-arm: (25 commits)
        [ARM] 3648/1: Update struct ucontext layout for coprocessor registers
        [ARM] Add identifying number for non-rt sigframe
        [ARM] Gather common sigframe saving code into setup_sigframe()
        [ARM] Gather common sigframe restoration code into restore_sigframe()
        [ARM] Re-use sigframe within rt_sigframe
        [ARM] Merge sigcontext and sigmask members of sigframe
        [ARM] Replace extramask with a full copy of the sigmask
        [ARM] Remove rt_sigframe puc and pinfo pointers
        [ARM] 3647/1: S3C24XX: add Osiris to the list of simtec pm machines
        [ARM] 3645/1: S3C2412: irq support for external interrupts
        [ARM] 3643/1: S3C2410: Add new usb clocks
        [ARM] 3642/1: S3C24XX: Add machine SMDK2413
        [ARM] 3641/1: S3C2412: Fixup gpio register naming
        [ARM] 3640/1: S3C2412: Use S3C24XX_DCLKCON instead of S3C2410_DCLKCON
        [ARM] 3639/1: S3C2412: serial port support
        [ARM] 3638/1: S3C2412: core clocks
        [ARM] 3637/1: S3C24XX: Add mpll clock, and set as fclk parent
        [ARM] 3636/1: S3C2412: Add selection of CPU_ARM926
        [ARM] 3635/1: S3C24XX: Add S3C2412 core cpu support
        [ARM] 3633/1: S3C24XX: s3c2410 gpio bugfix - wrong pin nos
        ...
      dfd8317d
    • Linus Torvalds's avatar
      Revert "[PATCH] usb: drivers/usb/core/devio.c dereferences a userspace pointer" · 83626b01
      Linus Torvalds authored
      This reverts commit 786dc1d3.
      
      As Al so eloquently points out, the patch is crap. The old code was fine,
      the new code was bogus.
      
      It never dereferenced a user pointer, the "->" operator was to an array
      member, which gives the _address_ of the member (in user space), not an
      actual dereference at all.
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      83626b01
  2. 24 Jun, 2006 31 commits