1. 13 4月, 2010 1 次提交
    • J
      [LogFS] Prevent memory corruption on large deletes · 032d8f72
      Joern Engel 提交于
      Removing sufficiently large files would create aliases for a large
      number of segments.  This in turn results in a large number of journal
      entries and an overflow of s_je_array.
      
      Cheap fix is to add a BUG_ON, turning memory corruption into something
      annoying, but less dangerous.  Real fix is to count the number of
      affected segments and prevent the problem completely.
      Signed-off-by: NJoern Engel <joern@logfs.org>
      032d8f72
  2. 31 3月, 2010 1 次提交
  3. 30 3月, 2010 2 次提交
  4. 29 3月, 2010 1 次提交
  5. 28 3月, 2010 2 次提交
    • J
      Simplify and fix pad_wbuf · 81def6b9
      Joern Engel 提交于
      A comment in the old code read:
              /* The math in this function can surely use some love */
      
      And indeed it did.  In the case that area->a_used_bytes is exactly
      4096 bytes below segment size it fell apart.  pad_wbuf is now split
      into two helpers that are significantly less complicated.
      Signed-off-by: NJoern Engel <joern@logfs.org>
      81def6b9
    • J
      Prevent data corruption in logfs_rewrite_block() · 19321917
      Joern Engel 提交于
      The comment was correct, so make the code match the comment.  As the
      new comment indicates, we might be able to do a little less work.  But
      for the current -rc series let's keep it simple and just fix the bug.
      Signed-off-by: NJoern Engel <joern@logfs.org>
      19321917
  6. 27 3月, 2010 20 次提交
  7. 26 3月, 2010 13 次提交