1. 05 Oct, 2002 16 commits
    • Andrew Morton's avatar
      [PATCH] Documentation/filesystems/ext3.txt · 6fb75ca4
      Andrew Morton authored
      By Vincent Hanquez <tab@tuxfamily.org>
      6fb75ca4
    • Andrew Morton's avatar
      [PATCH] use bio_get_nr_vecs() hint for pagecache writeback · f2b01f8b
      Andrew Morton authored
      Use the bio_get_nr_pages() hint for sizing the BIOs which writeback
      allocates.
      f2b01f8b
    • Andrew Morton's avatar
      [PATCH] fix reclaim for higher-order allocations · 3209a954
      Andrew Morton authored
      The page reclaim logic will bail out if all zones are at pages_high.
      But if the caller is requesting a higher-order allocation we need to go
      on and free more memory anyway.  That's the only way we have of
      addressing buddy fragmentation.
      3209a954
    • Andrew Morton's avatar
      [PATCH] separation of direct-reclaim and kswapd functions · bf3f607a
      Andrew Morton authored
      There is some lack of clarity in what kswapd does and what
      direct-reclaim tasks do; try_to_free_pages() tries to service both
      functions, and they are different.
      
      - kswapd's role is to keep all zones on its node at
      
      	zone->free_pages >= zone->pages_high.
      
        and to never stop as long as any zones do not meet that condition.
      
      - A direct reclaimer's role is to try to free some pages from the
        zones which are suitable for this particular allocation request, and
        to return when that has been achieved, or when all the relevant zones
        are at
      
      	zone->free_pages >= zone->pages_high.
      
      The patch explicitly separates these two code paths; kswapd does not
      run try_to_free_pages() any more.  kswapd should not be aware of zone
      fallbacks.
      bf3f607a
    • Andrew Morton's avatar
      [PATCH] mempool wakeup fix · fe66ad33
      Andrew Morton authored
      When the mempool is empty, tasks wait on the waitqueue in "exclusive
      mode".  So one task is woken for each returned element.
      
      But if the number of tasks which are waiting exceeds the mempool's
      specified size (min_nr), mempool_free() ends up deciding that as the
      pool is fully replenished, there cannot possibly be anyone waiting for
      more elements.
      
      But with 16384 threads running tiobench, it happens.
      
      We could fix this with a waitqueue_active() test in mempool_free().
      But rather than adding that test to this fastpath I changed the wait to
      be non-exclusive, and used the prepare_to_wait/finish_wait API, which
      will be quite beneficial in this case.
      
      Also, convert the schedule() in mempool_alloc() to an io_schedule(), so
      this sleep time is accounted as "IO wait".  Which is a bit approximate
      - we don't _know_ that the caller is really waiting for IO completion.
      But for most current users of mempools, io_schedule() is more accurate
      than schedule() here.
      fe66ad33
    • Andrew Morton's avatar
      [PATCH] O_DIRECT invalidation fix · a7634cff
      Andrew Morton authored
      If the alignment checks in generic_direct_IO() fail, we end up not
      forcing writeback of dirty pagecache pages, but we still run
      invalidate_inode_pages2().  The net result is that dirty pagecache gets
      incorrectly removed.  I guess this will expose unwritten disk blocks.
      
      So move the sync up into generic_file_direct_IO(), where we perform the
      invalidation.  So we know that pagecache and disk are in sync before we
      do anything else.
      a7634cff
    • Andrew Morton's avatar
      [PATCH] truncate fixes · 911ceab5
      Andrew Morton authored
      The new truncate code needs to check page->mapping after acquiring the
      page lock.  Because the page could have been unmapped by page reclaim
      or by invalidate_inode_pages() while we waited for the page lock.
      
      Also, the page may have been moved between a tmpfs inode and
      swapper_space.  Because we don't hold the mapping->page_lock across the
      entire truncate operation any more.
      
      Also, change the initial truncate scan (the non-blocking one which is
      there to stop as much writeout as possible) so that it is immune to
      other CPUs decreasing page->index.
      
      Also fix negated test in invalidate_inode_pages2().  Not sure how that
      got in there.
      911ceab5
    • Andrew Morton's avatar
      [PATCH] distinguish between address span of a zone and the number · d3975580
      Andrew Morton authored
      From David Mosberger
      
      The patch below fixes a bug in nr_free_zone_pages() which shows when a
      zone has hole.  The problem is due to the fact that "struct zone"
      didn't keep track of the amount of real memory in a zone.  Because of
      this, nr_free_zone_pages() simply assumed that a zone consists entirely
      of real memory.  On machines with large holes, this has catastrophic
      effects on VM performance, because the VM system ends up thinking that
      there is plenty of memory left over in a zone, when in fact it may be
      completely full.
      
      The patch below fixes the problem by replacing the "size" member in
      "struct zone" with "spanned_pages" and "present_pages" and updating
      page_alloc.c.
      d3975580
    • Andrew Morton's avatar
      [PATCH] remove debug code from list_del() · 9d66d9e9
      Andrew Morton authored
      It hasn't caught any bugs, and it is causing confusion over whether
      this is a permanent part of list_del() behaviour.
      9d66d9e9
    • Andrew Morton's avatar
      [PATCH] hugetlb kmap fix · db12b88f
      Andrew Morton authored
      From Bill Irwin
      
      This patch makes alloc_hugetlb_page() kmap() the memory it's zeroing,
      and cleans up a tiny bit of list handling on the side.  Without this
      fix, it oopses every time it's called.
      db12b88f
    • Andrew Morton's avatar
      [PATCH] fix /proc/vmstat:pgpgout/pgpgin · 908325dc
      Andrew Morton authored
      These numbers are being sent to userspace as number-of-sectors, whereas
      they should be number-of-k.
      908325dc
    • Brian Gerst's avatar
      [PATCH] struct super_block cleanup - ext3 · 5868a499
      Brian Gerst authored
      Removes the last member of the union, ext3.
      5868a499
    • Brian Gerst's avatar
      [PATCH] struct super_block cleanup - hpfs · 40f51070
      Brian Gerst authored
      Remove hpfs_sb from struct super_block.
      40f51070
    • Kai Mäkisara's avatar
      [PATCH] SCSI tape devfs & driverfs fix · 9709ae9f
      Kai Mäkisara authored
      fix device numbering in driverfs and devfs broken by previous patch
      (bug found by Bjoern A. Zeeb (bz@zabbadoz.net))
      9709ae9f
    • Christer Weinigel's avatar
      [PATCH] Updated NatSemi SCx200 patches for Linux-2.5 · 3900abd5
      Christer Weinigel authored
      This patch adds support for the National Semiconductor SCx200
      processor family to Linux 2.5.
      
      The patch consists of the following drivers:
      
        arch/i386/kernel/scx200.c -- give kernel access to the GPIO pins
      
        drivers/chars/scx200_gpio.c -- give userspace access to the GPIO pins
        drivers/chars/scx200_wdt.c -- watchdog timer driver
      
        drivers/i2c/scx200_i2c.c -- use any two GPIO pins as an I2C bus
        drivers/i2c/scx200_acb.c -- driver for the Access.BUS hardware
      
        drivers/mtd/maps/scx200_docflash.c -- driver for a CFI flash connected
                                            to the DOCCS pin
      3900abd5
    • Petr Vandrovec's avatar
      [PATCH] FAT/VFAT memory corruption during mount() · 10d033f7
      Petr Vandrovec authored
      This patch fixes memory corruption during vfat mount: one byte
      before mount options is overwritten by ',' since strtok->strsep
      conversion happened.
      
      This patch also fixes another problem introduced by strtok->strsep
      conversion: VFAT requires that FAT does not modify passed options,
      but unfortunately FAT driver fails to preserve options string if
      there is more than one consecutive comma in option string.
      10d033f7
  2. 04 Oct, 2002 24 commits