1. 25 Jun, 2006 6 commits
    • 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 34 commits