1. 30 Jan, 2018 1 commit
  2. 29 Jan, 2018 1 commit
    • Bob Peterson's avatar
      GFS2: Don't try to end a non-existent transaction in unlink · 2eb5909d
      Bob Peterson authored
      Before this patch, if function gfs2_unlink failed to get a valid
      transaction (for example, not enough journal blocks) it would go
      to label out_end_trans which did gfs2_trans_end. But if the
      trans_begin failed, there's no transaction to end, and trying to
      do so results in: kernel BUG at fs/gfs2/trans.c:117!
      
      This patch changes the goto so that it does not try to end a
      non-existent transaction.
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      2eb5909d
  3. 25 Jan, 2018 1 commit
  4. 23 Jan, 2018 2 commits
  5. 22 Jan, 2018 1 commit
  6. 18 Jan, 2018 7 commits
  7. 17 Jan, 2018 9 commits
  8. 22 Dec, 2017 2 commits
    • Abhi Das's avatar
      gfs2: Trim the ordered write list in gfs2_ordered_write() · 1f23bc78
      Abhi Das authored
      We iterate through the entire ordered writes list in
      gfs2_ordered_write() to write out inodes. It's a good
      place to try and shrink the list by throwing out inodes
      that don't have any pages.
      Signed-off-by: default avatarAbhi Das <adas@redhat.com>
      Acked-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      1f23bc78
    • Bob Peterson's avatar
      GFS2: Reduce code redundancy writing log headers · 588bff95
      Bob Peterson authored
      Before this patch, there was a lot of code redundancy between functions
      log_write_header (which uses bio) and clean_journal (which uses
      buffer_head). This patch reduces the redundancy to simplify the code
      and make log header writing more consistent. We want more consistency
      and reduced redundancy because we plan to add a bunch of new fields
      to improve performance (by eliminating the local statfs and quota files)
      improve metadata integrity (by adding new crcs and such) and for better
      debugging (by adding new fields to track when and where metadata was
      pushed through the journals.) We don't want to duplicate setting these
      new fields, nor allow for human error in the process.
      
      This reduction in code redundancy is accomplished by introducing a new
      helper function, gfs2_write_log_header which uses bio rather than bh.
      That simplifies recovery function clean_journal() to use the new helper
      function and iomap rather than redundancy and block_map (and eventually
      we can maybe remove block_map). It also reduces our dependency on
      buffer_heads.
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      588bff95
  9. 18 Dec, 2017 1 commit
  10. 17 Dec, 2017 15 commits