1. 23 4月, 2008 4 次提交
    • D
      [JFFS2] Add erase_checking_list to hold blocks being marked. · e2bc322b
      David Woodhouse 提交于
      Just to keep the debug code happy when it's adding all the blocks up.
      Otherwise, they disappear for a while while the locks are dropped to
      check them and write the cleanmarker.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      e2bc322b
    • A
      [JFFS2] Return values of jffs2_block_check_erase error paths · 8a0f5723
      Anders Grafström 提交于
      It looks the error paths in jffs2_block_check_erase() have wrong return 
      values. A block that failed to be erased never gets marked as bad.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      8a0f5723
    • D
      [JFFS2] Add paranoia debugging for superblock counts · 85a62db6
      David Woodhouse 提交于
      The problem fixed in commit 014b164e
      (space leak with in-band cleanmarkers) would have been caught a lot
      quicker if our paranoid debugging mode had included adding up the size
      counts from all the eraseblocks and comparing the totals with the counts
      in the superblock. Add that.
      
      Make jffs2_mark_erased_block() file the newly-erased block on the
      free_list before calling the debug function, to make it happy.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      85a62db6
    • D
      [JFFS2] Fix free space leak with in-band cleanmarkers · 014b164e
      David Woodhouse 提交于
      We were accounting for the cleanmarker by calling jffs2_link_node_ref()
      (without locking!), which adjusted both superblock and per-eraseblock
      accounting, subtracting the size of the cleanmarker from {jeb,c}->free_size
      and adding it to {jeb,c}->used_size.
      
      But only _then_ were we adding the size of the newly-erased block back
      to the superblock counts, and we were adding each of jeb->{free,used}_size
      to the corresponding superblock counts. Thus, the size of the cleanmarker
      was effectively subtracted from the superblock's free_size _twice_.
      
      Fix this, by always adding a full eraseblock size to c->free_size when
      we've erased a block. And call jffs2_link_node_ref() under the proper
      lock, while we're at it.
      
      Thanks to Alexander Yurchenko and/or Damir Shayhutdinov for (almost)
      pinpointing the problem.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      014b164e
  2. 22 4月, 2008 1 次提交
  3. 24 9月, 2007 1 次提交
  4. 22 8月, 2007 1 次提交
  5. 10 7月, 2007 1 次提交
  6. 29 6月, 2007 3 次提交
  7. 25 4月, 2007 1 次提交
    • D
      [JFFS2] Tidy up licensing/copyright boilerplate. · c00c310e
      David Woodhouse 提交于
      In particular, remove the bit in the LICENCE file about contacting
      Red Hat for alternative arrangements. Their errant IS department broke
      that arrangement a long time ago -- the policy of collecting copyright
      assignments from contributors came to an end when the plug was pulled on
      the servers hosting the project, without notice or reason.
      
      We do still dual-license it for use with eCos, with the GPL+exception
      licence approved by the FSF as being GPL-compatible. It's just that nobody
      has the right to license it differently.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      c00c310e
  8. 18 4月, 2007 1 次提交
  9. 27 6月, 2006 2 次提交
  10. 27 5月, 2006 1 次提交
  11. 25 5月, 2006 2 次提交
  12. 24 5月, 2006 1 次提交
    • D
      [JFFS2] Reduce visibility of raw_node_ref to upper layers of JFFS2 code. · 2f785402
      David Woodhouse 提交于
      As the first step towards eliminating the ref->next_phys member and saving
      memory by using an _array_ of struct jffs2_raw_node_ref per eraseblock,
      stop the write functions from allocating their own refs; have them just
      _reserve_ the appropriate number instead. Then jffs2_link_node_ref() can
      just fill them in.
      
      Use a linked list of pre-allocated refs in the superblock, for now. Once
      we switch to an array, it'll just be a case of extending that array.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      2f785402
  13. 22 5月, 2006 2 次提交
  14. 21 5月, 2006 2 次提交
  15. 07 11月, 2005 3 次提交
  16. 06 11月, 2005 1 次提交
  17. 15 7月, 2005 1 次提交
  18. 23 5月, 2005 7 次提交
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4