1. 17 Nov, 2002 15 commits
  2. 16 Nov, 2002 25 commits
    • Matthew Wilcox's avatar
      [PATCH] Add some missing includes to drivers/base · f4acf4dd
      Matthew Wilcox authored
      drivers/base relies on device.h pulling in sched.h pulling in the rest
      of the world.  Add some explicit dependencies in preparation for removing
      sched.h from device.h.
      f4acf4dd
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from coda_linux.h · 73e01486
      Matthew Wilcox authored
      coda_linux simply doesn't need sched.h
      73e01486
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from elf.h · 0b466013
      Matthew Wilcox authored
      elf.h simply doesn't need sched.h
      0b466013
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from ftape.h · 3c5fcc41
      Matthew Wilcox authored
      ftape.h really wants interrupt.h, not sched.h
      3c5fcc41
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from i2c.h · 384eae92
      Matthew Wilcox authored
      i2c.h simply doesn't need sched.h
      384eae92
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from if_pppox.h · 61b5517f
      Matthew Wilcox authored
      if_pppox simply doesn't need sched.h
      61b5517f
    • Linus Torvalds's avatar
      Fix up after header file cleanups: add <linux/mount.h> to · 590f075f
      Linus Torvalds authored
      NFSD users that got it implicitly before.
      590f075f
    • Linus Torvalds's avatar
      Fix up after pci name removal · cc85ac3d
      Linus Torvalds authored
      cc85ac3d
    • Christoph Hellwig's avatar
      [PATCH] fork.c bits for uClinux · 96945de5
      Christoph Hellwig authored
      mmuless ports don't need dup_mmap nor allocation of a pgd.
      
      I tried to avoid ifdef-mess as far as possible, and to archive that
      I created small wrappers for pgd allocation/freeing and move taking
      of the mmap semaphore into dup_mmap from the only caller.  The end
      result is just one additiona ifdef.
      96945de5
    • Christoph Hellwig's avatar
      [PATCH] move mount.h out of fs_struct.h · 1310a881
      Christoph Hellwig authored
      It's only need for the two monster-inlines set_fs_root and set_fs_pwd
      that should better be out of line anyway.  Some additional cleanup like
      named initializers as extra bonus.
      1310a881
    • Christoph Hellwig's avatar
      [PATCH] don't include mount.h in dcache.h · fe406442
      Christoph Hellwig authored
      Once again we only need a forward-declaration of struct vfsmount.
      fe406442
    • Christoph Hellwig's avatar
      [PATCH] include mount.h explicitly were needed · 754c5c66
      Christoph Hellwig authored
      This is a preparation to get rid of the implicit includes in
      dcache.h and fs_struct.h.
      754c5c66
    • Christoph Hellwig's avatar
      [PATCH] nuke some crap from fs.h · bb18cd7f
      Christoph Hellwig authored
      Remove four dead prototypes and don't include mount.h here - fs.h
      itself doesn't need it at all (just the struct vfsmount forward
      declaration) and gets it through dcache.h anyway.
      bb18cd7f
    • Linus Torvalds's avatar
      Merge · 61184519
      Linus Torvalds authored
      61184519
    • Matthew Wilcox's avatar
      [PATCH] eliminate pci_dev name · 49ec0f07
      Matthew Wilcox authored
      This removes the pci_dev "->name[]" field, and makes users use the
      "struct device" name field instead.
      
      It also trimps it down to 50 bytes and limited the length of the vendor
      & device descriptions to 20 bytes each.  Now we have three cases:
      
       - unknown vendor & unknown device -> "PCI device %04x:%04x".
      	Clearly limited to 21 chars.
       - known vendor, unknown device -> "PCI device %04x:%04x (%.20s)"
      	24 + 20 chars
       - known vendor, known device -> "%.20s %.20s"
      	20 + 1 + 20 + 1, EXCEPT:
       - multiple devices of the same type add " (#%d)"
      	so 42 + 4 + 4 = 50.  This is the point where an IBMer tells me they
      	intend to sell a machine with > 9999 PCI devices of the same type ;-)
      
      This limits the PCI IDs to a reasonable amount of space.
      
      For release, I think we do want to go back up to 80 for prettier output
      49ec0f07
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from parport.h · 500b6959
      Matthew Wilcox authored
      parport only needs jiffies.h, not sched.h
      500b6959
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from nfsd/cache.h · 4f1c85e1
      Matthew Wilcox authored
      nfsd/cache.h doesn't need sched.h, just sockaddr_in and iovec
      4f1c85e1
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from input.h · 31c8380c
      Matthew Wilcox authored
      input.h wants fs.h and timer.h, not sched.h
      31c8380c
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from atmdev.h · b1f4c915
      Matthew Wilcox authored
      atmdev.h only wants wait.h, not sched.h
      b1f4c915
    • Matthew Wilcox's avatar
      [PATCH] remove sched.h from blkdev.h · 2438cf59
      Matthew Wilcox authored
      blkdev.h simply doesn't need sched.h
      2438cf59
    • Andrew Morton's avatar
      [PATCH] better inode reclaim balancing · 9c716856
      Andrew Morton authored
      The inode reclaim is too aggressive at present - it is causing the
      shootdown of lots of recently-used pagecache.  Simple testcase: run a
      huge `dd' while running a concurrent `watch -n1 cat /proc/meminfo'.
      The program text for `cat' gets loaded from disk once per second.
      
      This is in fact because the dentry_unused reclaim is too aggressive.
      
      (The general approach to inode reclaim is that it _not_ happen at the
      inode level.  All the aging and lru activity happens at the dcache
      level.)
      
      The problem is partly due to a bug: shrink_dcache_memory() is returning
      the *total* number of dentries to the VM, rather than the number of
      unused dentries.
      
      This patch fixes that, and goes a little further.
      
      We do want to keep some unused dentries around.  Reclaiming the last
      few thousand dentries is pretty pointless, and will allow reclaim of
      the last few thousand inodes and their attached pagecache.
      
      So the algorithm I have used is to not allow the number of unused
      dentries to fall below the number of used ones.  This keeps a
      reasonable number of dentries in cache while providing a level of
      scaling to the system size and the current system activity.
      
      (Magic number alert: why not pin nr_unused to seven times nr_used,
      rather than one times??)
      
      shrink_dcache_memory() has been changed to tell the VM that the number
      of shrinkable dentries is:
      
      	zero if (nr_unused < nr_used)
      	otherwise (nr_unused - nr_used)
      
      so when there is memory pressure the VM will prune the unused dentry
      cache down to the size of the used dentry cache, but not below that.
      
      The patch also arranges (awkwardly) for all modifications of
      dentry_stat.nr_dentry to occur inside dcache_lock - it was racy.
      9c716856
    • Andrew Morton's avatar
      [PATCH] kmap->kmap_atomic in mpage.c · b084fe4b
      Andrew Morton authored
      Replace some kmaps in mpage.c with kmap_atomic.
      b084fe4b
    • Andrew Morton's avatar
      [PATCH] try to remove buffer_heads from to-be-reaped inodes · deda1b5e
      Andrew Morton authored
      Stephen Tweedie reports a 2.4.7 problem in which kswapd is chewing lots
      of CPU trying to reclaim inodes which are pinned by buffer_heads at
      i_dirty_buffers.
      
      This can only happen when there's memory pressure on ZONE_HIGHMEM - the
      2.4 kernel runs shrink_icache_memory in that case as well.  But there's
      no reclaim pressure on ZONE_NORMAL so the VM is never running
      try_to_free_buffers() against the ZONE_NORMAL buffers which are pinning
      the inodes.
      
      The 2.5 kernel also runs the slab shrinkers in response to ZONE_HIGHMEM
      pressure.  This may be wrong - still thinking about that.
      
      This patch arranges for prune_icache to try to remove the inode's buffers
      when the inode is to be reclaimed.
      
      It also changes inode_has_buffers() and the other inode-buffer-list
      functions to look at inode->i_data, not inode->i_mapping.  The latter
      was wrong.
      deda1b5e
    • Andrew Morton's avatar
      [PATCH] improved slab error diagnostics · db054df8
      Andrew Morton authored
      slab does various consistency checks during `cat /proc/slabinfo'
      processing.  If it finds one it stupidly goes BUG just before
      displaying the info which is required to diagnose the bug.
      
      Change it to not go BUG, but to emit some useful printks and continue.
      
      The patch also removes an uninteresting printk from the boot process.
      db054df8
    • Andrew Morton's avatar
      [PATCH] more hugetlb fixes · 8838edfb
      Andrew Morton authored
      Patch from Rohit Seth, changelog from Bill Irwin:
      
      (1) fixes failure to clear key->busy (yes, it's always under a lock)
      (2) fixes key->count being unconditionally set to 1 in alloc_key()
      (3) reduces search to key->size >> HPAGE_SHIFT from key->size
      (4) actually uses vma->vm_private_data to release the key as intended
      
      plus the cleanup:
      (5) removes the int *new argument to alloc_key()
      8838edfb