1. 26 Sep, 2008 5 commits
    • Linus Torvalds's avatar
      Merge git://oss.sgi.com:8090/xfs/linux-2.6 · ec4d9028
      Linus Torvalds authored
      * git://oss.sgi.com:8090/xfs/linux-2.6:
        [XFS] Remove xfs_iext_irec_compact_full()
        [XFS] Fix extent list corruption in xfs_iext_irec_compact_full().
      ec4d9028
    • David Howells's avatar
      ARM: Delete ARM's own cnt32_to_63.h · bc173c57
      David Howells authored
      Delete ARM's own cnt32_to_63.h as the copy in include/linux/ should now be
      used instead.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bc173c57
    • Linus Torvalds's avatar
      Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubifs-2.6 · bde40fe0
      Linus Torvalds authored
      * 'linux-next' of git://git.infradead.org/~dedekind/ubifs-2.6:
        UBIFS: fix printk format warnings
        UBIFS: remove incorrect assert
        UBIFS: TNC / GC race fixes
        UBIFS: create the name of the background thread in every case
      bde40fe0
    • Lachlan McIlroy's avatar
      [XFS] Remove xfs_iext_irec_compact_full() · 71a8c87f
      Lachlan McIlroy authored
      Yet another bug was found in xfs_iext_irec_compact_full() and while the
      source of the bug was found it wasn't an easy task to track it down
      because the conditions are very difficult to reproduce.
      
      A HUGE thank-you goes to Russell Cattelan and Eric Sandeen for their
      significant effort in tracking down the source of this corruption.
      
      xfs_iext_irec_compact_full() and xfs_iext_irec_compact_pages() are almost
      identical - they both compact indirect extent lists by moving extents from
      subsequent buffers into earlier ones. xfs_iext_irec_compact_pages() only
      moves extents if all of the extents in the next buffer will fit into the
      empty space in the buffer before it. xfs_iext_irec_compact_full() will go
      a step further and move part of the next buffer if all the extents wont
      fit. It will then shift the remaining extents in the next buffer up to the
      start of the buffer. The bug here was that we did not update er_extoff and
      this caused extent list corruption.
      
      It does not appear that this extra functionality gains us much. Calling
      xfs_iext_irec_compact_pages() instead will do a good enough job at
      compacting the indirect list and will be quicker too.
      
      For the case in xfs_iext_indirect_to_direct() the total number of extents
      in the indirect list will fit into one buffer so we will never need the
      extra functionality of xfs_iext_irec_compact_full() there.
      
      Also xfs_iext_irec_compact_pages() doesn't need to do a memmove() (the
      buffers will never overlap) so we don't want the performance hit that can
      incur.
      
      SGI-PV: 987159
      
      SGI-Modid: xfs-linux-melb:xfs-kern:32166a
      Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
      Signed-off-by: default avatarEric Sandeen <sandeen@sandeen.net>
      71a8c87f
    • Lachlan McIlroy's avatar
      [XFS] Fix extent list corruption in xfs_iext_irec_compact_full(). · f1ccd295
      Lachlan McIlroy authored
      If we don't move all the records from the next buffer into the current
      buffer then we need to update the er_extoff field of the next buffer as we
      shift the remaining records to the start of the buffer.
      
      SGI-PV: 987159
      
      SGI-Modid: xfs-linux-melb:xfs-kern:32165a
      Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
      Signed-off-by: default avatarEric Sandeen <sandeen@sandeen.net>
      Signed-off-by: default avatarRussell Cattelan <cattelan@thebarn.com>
      f1ccd295
  2. 25 Sep, 2008 1 commit
  3. 24 Sep, 2008 22 commits
  4. 23 Sep, 2008 12 commits