1. 17 4月, 2006 3 次提交
    • J
      Simplify test for RAM devices · 7f7c08df
      Jörn Engel 提交于
      mtdblock is the only user of aggregate capabilities in mtd.  This is clearly
      bogus and should be changed.  In particular, it tries to determine whether
      the device in question is a piece of RAM.  For every single driver that fits
      the current criteria, an easier test would be to check for the type being
      MTD_RAM.
      Signed-off-by: NJörn Engel <joern@wohnheim.fh-wedel.de>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      7f7c08df
    • D
    • D
      [JFFS2] Fix race in post-mount node checking · d96fb997
      David Woodhouse 提交于
      For a while now, we've postponed CRC-checking of data nodes to be done
      by the GC thread, instead of being done while the user is waiting for
      mount to finish. The GC thread would iterate through all the inodes on
      the system and check each of their data nodes. It would skip over inodes
      which had already been used or were already being read in by
      read_inode(), because their data nodes would have been examined anyway.
      
      However, we could sometimes reach the end of the for-each-inode loop and
      still have some unchecked space left, if an inode we'd skipped was
      _still_ in the process of being read. This fixes that race by actually
      waiting for read_inode() to finish rather than just moving on.
      
      Thanks to Ladislav Michl for coming up with a reproducible test case and
      helping to track it down.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      d96fb997
  2. 16 4月, 2006 3 次提交
  3. 15 4月, 2006 34 次提交