1. 03 Jun, 2004 3 commits
    • Andrew Morton's avatar
      [PATCH] ppc32: add "indirect" DCR access, pass 2 · b5f6a5b1
      Andrew Morton authored
      From: Matt Porter <mporter@kernel.crashing.org>
      
      DCR number is encoded in mfdcr/mtdcr command itself and this prevents easy
      DCR access when register number is not known on compile time.  This patch
      adds __mfdcr & __mtdcr helpers which use pre-generated mfdcr/mtdcr
      sequences for all possible DCR numbers.  We also use GCC extension
      __builtin_constant_p to optimize cases when DCR number is in fact known
      during compilation.
      Signed-off-by: default avatarEugene Surovegin <ebs@ebshome.net>
      Signed-off-by: default avatarMatt Porter <mporter@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b5f6a5b1
    • Andrew Morton's avatar
      [PATCH] shrink_all_memory() fixes · 114b0865
      Andrew Morton authored
      - Off-by-one in balance_pgdat means that we're not scanning the zones all
        the way down to priority=0.
      
      - Always set zone->temp_priority in shrink_caches().  I'm not sure why I had
        the `if (zone->free_pages < zone->pages_high)' test in there, but it's
        preventing us from setting ->prev_priority correctly on the
        try_to_free_pages() path.
      
      - Set zone->prev_priority to the current priority if it's currently a
        "lower" priority.  This allows us to build up the pressure on mapped pages
        on the first scanning pass rather than only on successive passes.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      114b0865
    • Andrew Morton's avatar
      [PATCH] ramfs o_sync oops fix · 97e012bb
      Andrew Morton authored
      Writing to ramfs files with O_SYNC dereferences null in mpage_writepages(),
      due to null a_ops->writepage.  The call path is
      
      	generic_file_aio_write_nolock
      	->generic_osync_inode
      	  ->write_inode_now
      	    ->__writeback_single_inode
      	      ->__sync_single_inode
      	        ->do_writepages
      	          ->mpage_writepages
      
      The best fix for this is to visit all ram-backed filesystems and give them a
      no-op a_ops.writepages.  But baling out if the file is memory-backed is a
      sufficient coverall and is how we handle this in __filemap_fdatawrite().
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      97e012bb
  2. 02 Jun, 2004 33 commits
  3. 01 Jun, 2004 2 commits
  4. 02 Jun, 2004 2 commits