1. 22 Dec, 2002 17 commits
  2. 21 Dec, 2002 23 commits
    • Richard Henderson's avatar
      ba96dab4
    • Greg Kroah-Hartman's avatar
      Merge kroah.com:/home/linux/linux/BK/bleeding-2.5 · 7037193a
      Greg Kroah-Hartman authored
      into kroah.com:/home/linux/linux/BK/gregkh-2.5
      7037193a
    • James Keniston's avatar
      [PATCH] dev_printk macro · b874f98e
      James Keniston authored
      b874f98e
    • Henning Meier-Geinitz's avatar
      [PATCH] scanner.c: Support for devices with only one bulk-in endpoint · 6f815233
      Henning Meier-Geinitz authored
      This patch (originally from Sergey Vlasov) adds support for scanners
      with only one bulk-in endpoint. It's needed by all the GT-6801 based
      scanners like the Artec Ultima 2000 or some of the Mustek BearPaws.
      6f815233
    • Henning Meier-Geinitz's avatar
      [PATCH] scanner.h: add/fix vendor/product ids · 00945e82
      Henning Meier-Geinitz authored
      This patch adds additional vendor and product ids for Nikon, Mustek,
      Plustek, Genius, Epson, Canon, Umax, Hewlett-Packard, Benq, Agfa,
      and Minolta scanners. The entries for Benq, Genius and Plustek
      scanners have been updated.
      
      I've also increased the version number to 0.4.9 and brought the
      version numbers in scanner.c and scanner.h in sync.
      00945e82
    • David Brownell's avatar
      [PATCH] ehci, qtd submit and completions · a37d3ccc
      David Brownell authored
       > ... usb-storage gets unhappy when
       > it decides (why?  and unsuccessfully) to reset high speed
       > devices.  ...
      
      I don't know if that problem is resolved, but this patch
      makes the question moot by handling an earlier error correctly.
      
      The patch updates an incorrect test, so a short read will now
      be treated as one.  Please merge.
      
      This lets storage behave again.  As in, "mkfs -c" then copy
      about 8 GB around, then 'dbench'.
      a37d3ccc
    • Linus Torvalds's avatar
      Remove old pci_dma_supported(), this is done by the generic · 4e375211
      Linus Torvalds authored
      device DMA now (see <linux/pci.h> for the compat wrapper).
      4e375211
    • James Bottomley's avatar
    • James Bottomley's avatar
      generic device DMA API · 1ebad6d8
      James Bottomley authored
      add dma_ API to mirror pci_ DMA API but phrased to use struct
      device instead of struct pci_dev.
      
      See Documentation/DMA-API.txt for details
      1ebad6d8
    • Linus Torvalds's avatar
      More mtrr/if.c fixes · 011f5659
      Linus Torvalds authored
       - printk is not an acceptable substitute for errors
       - fix indentation of mtrr_close()
       - fix duplicate mtrr "release" fn pointer initializer
      011f5659
    • Andrew Morton's avatar
      [PATCH] remove unused macro MAP_ALIGN() · 7a503673
      Andrew Morton authored
      Patch from Christoph Hellwig <hch@lst.de>
      
      remove unused macro MAP_ALIGN()
      7a503673
    • Andrew Morton's avatar
      [PATCH] remove memclass() · 9a7e870f
      Andrew Morton authored
      From hch.  Nothing is using the memclass() predicate.
      9a7e870f
    • Andrew Morton's avatar
      [PATCH] don't cacheline-align radix_tree_nodes · 2a17c650
      Andrew Morton authored
      They are 260 bytes.  We can get 15 per page without cacheline
      alignment.  But we're currently only getting ten per page on P4.
      2a17c650
    • Andrew Morton's avatar
      [PATCH] hugetlbfs: set inode->i_size · 74bbb9c7
      Andrew Morton authored
      An `ls' in hugetlbfs currently shows all files having zero size.
      
      So, part-cosmetic, part-informative, we here set i_size to represent the
      index of the highest present page in the mapping, plus one.
      74bbb9c7
    • Andrew Morton's avatar
      [PATCH] hugetlb: report shared memory attachment counts · 165eaa86
      Andrew Morton authored
      From Rohit Seth
      
      Attached is a patch that passes the correct information back to user
      land for number of attachments to shared memory segment.  I could have
      done few more changes in a way nattach is getting set for regular cases
      now, but just want to limit it at this point.
      165eaa86
    • Andrew Morton's avatar
      [PATCH] hugetlb bugfixes · f19dc938
      Andrew Morton authored
      From Rohit Seth
      
      1) Bug fixes (mainly in the unsuccessful attempts of hugepages).
      
         i) not modifying the value of key for unsuccessful key
            allocation
      
         ii) Correct usage of mmap_sem in free_hugepages
      
         iii) Proper unlocking of key->lock for partial hugepage
              allocations
      
      
      2) Include the IPC_LOCK for permission to use hugepages via the
         syscall interface.  This brings the syscall interface into line with
         the hugetlbfs interface.
      
         It also adds permits users who are in the superuser group to
         access hugetlb resources.  This is so that database servers can run
         without elevated permissions.
      
      3) Increment the key_counts during forks to correctly identify the
         number of processes references a key.
      f19dc938
    • Andrew Morton's avatar
      [PATCH] ext3: fix buffer dirtying · 0c74aabb
      Andrew Morton authored
      This is a forward-port from 2.4.  One of Stephen's recent fixes.  I
      managed to merge up only half of it.  Here is the rest.  It should fix
      the asserton failure reported by Robert Macaulay
      <robert_macaulay@dell.com>
      
      "There was a race window in buffer refiling where we could temporarily
       expose the journal's internal BH_JBDDirect flag as BH_Dirty, which is
       visible to the rest of the VFS.  That doesn't affect the journaling,
       because we hold journal_head locks while the buffer is in this
       transient state, but bdflush can see the buffer and write it out
       unexpectedly, causing ext3 to find the buffer in an unexpected state
       later."
      
       The fix simply keeps the dirty bits clear during the internal buffer
       processing, restoring the state to the private BH_JBDDirect once
       refiling is complete."
      0c74aabb
    • Andrew Morton's avatar
      [PATCH] ext3 use-after-free bugfix · dd2f1160
      Andrew Morton authored
      If ext3_add_nondir() fails it will do an iput() of the inode.  But we
      continue to run ext3_mark_inode_dirty() against the potentially-freed
      inode.  This oopses when slab poisoning is enabled.
      
      Fix it so that we only run ext3_mark_inode_dirty() if the inode was
      successfully instantiated.
      dd2f1160
    • Andrew Morton's avatar
      [PATCH] rename locals in ext2_new_block() · 02d0c3df
      Andrew Morton authored
      Renames the local variables `bh2', `i', `j', 'k', and `tmp' to
      something meanigful.  This brings ext2_new_block() into line with
      ext3_new_block().
      02d0c3df
    • Andrew Morton's avatar
      [PATCH] ext2: smarter block allocation startup · 7dcaa802
      Andrew Morton authored
      The same thing, for ext2.
      7dcaa802
    • Andrew Morton's avatar
      [PATCH] ext3: smarter block allocation startup · d2562c9d
      Andrew Morton authored
      When an ext3 (or ext2) file is first created the filesystem has to
      choose the initial starting block for its data allocations.  In the
      usual (new-file) case, that initial goal block is the zeroeth block of
      a particular blockgroup.
      
      This is the worst possible choice.  Because it _guarantees_ that this
      file's blocks will be pessimally intermingled with the blocks of
      another file which is growing within the same blockgroup.
      
      We've always had this problem with files in the same directory.  With
      the introduction of the Orlov allocator we now have the problem with
      files in different directories.  And it got noticed.  This is the cause
      of the post-Orlov 50% slowdown in dbench throughput on ext3 on
      write-through caching SCSI on SMP.  And 25% in ext2.
      
      It doesn't happen on uniprocessor because a single CPU will not exhibit
      sufficient concurrency in allocation against two or more files.
      
      It will happen on uniprocessor if the files are growing slowly.
      
      It has always happened if the files are in the same directory.
      
      ext2 has the same problem but it is siginficantly less damaging there
      because of ext2's eight-block per-inode preallocation window.
      
      The patch largely solves this problem by not always starting the
      allocation goal at the zeroeth block of the blockgroup.  We instead
      chop the blockgroup into sixteen starting points and select one of those
      based on the lower four bits of the calling process's PID.
      
      The PID was chosen as the index because this will help to ensure that
      related files have the same starting goal.  If one process is slowly
      writing two files in the same directory, we still lose.
      
      
      Using the PID in the heuristic is a bit weird.  As an alternative I
      tried using the file's directory's i_ino.  That fixed the dbench
      problem OK but caused a 15% slowdown in the fast-growth `untar a kernel
      tree' workload.  Because this approach will cause files which are in
      different directories to spread out more.  Suppressing that behaviour
      when the files are all being created by the same process is a
      reasonable heuristic.
      
      
      I changed dbench to never unlink its files, and used e2fsck to
      determine how many fragmented files were present after a `dbench 32'
      run.  With this patch and the next couple, ext2's fragmentation went
      from 22% to 13% and ext3's from 25% to 10.4%.
      d2562c9d
    • Andrew Morton's avatar
      [PATCH] ext2/3: better starting group for S_ISREG files · 1cdf4231
      Andrew Morton authored
      ext2 places non-directory objects into the same blockgroup as their
      directory, as long as that directory has free inodes.  It does this
      even if there are no free blocks in that blockgroup (!).
      
      This means that if there are lots of files being created at a common
      point in the tree, they _all_ have the same starting blockgroup.  For
      each file we do a big search forwards for the first block and the
      allocations end up getting intermingled.
      
      So this patch will avoid placing new inodes in block groups which have
      no free blocks.
      
      So far so good.  But this means that if a lot of new files are being
      created under a directory (or multiple directories) which are in the
      same blockgroup, all the new inodes will overflow into the same
      blockgroup.  No improvement at all.
      
      So the patch arranges for the new inode locations to be "spread out"
      across different blockgroups if they are not going to be placed in
      their directory's block group.  This is done by adding parent->i_ino
      into the starting point for the quadratic hash.  i_ino was chosen so
      that files which are in the same directory will tend to all land in the
      same new blockgroup.
      1cdf4231
    • Andrew Morton's avatar
      [PATCH] ext2/3 commentary and cleanup · 61432dbc
      Andrew Morton authored
      - Add some (much-needed) commentary to the ext2/ext3 block allocator
        state fields.
      
      - Remove the SEARCH_FROM_ZERO debug code.  I wrote that to trigger
        some race and it hasn't been used in a year.
      61432dbc