1. 06 1月, 2009 2 次提交
    • M
      ocfs2: Use BH_JBDPrivateStart instead of BH_Unshadow · b86c86fa
      Mark Fasheh 提交于
      This is safer. We no longer have to worry about tracking changes to
      jbd_state_bits.
      Signed-off-by: NMark Fasheh <mfasheh@suse.com>
      b86c86fa
    • J
      ocfs2: Validate metadata only when it's read from disk. · 970e4936
      Joel Becker 提交于
      Add an optional validation hook to ocfs2_read_blocks().  Now the
      validation function is only called when a block was actually read off of
      disk.  It is not called when the buffer was in cache.
      
      We add a buffer state bit BH_NeedsValidate to flag these buffers.  It
      must always be one higher than the last JBD2 buffer state bit.
      
      The dinode, dirblock, extent_block, and xattr_block validators are
      lifted to this scheme directly.  The group_descriptor validator needs to
      be split into two pieces.  The first part only needs the gd buffer and
      is passed to ocfs2_read_block().  The second part requires the dinode as
      well, and is called every time.  It's only 3 compares, so it's tiny.
      This also allows us to clean up the non-fatal gd check used by resize.c.
      It now has no magic argument.
      Signed-off-by: NJoel Becker <joel.becker@oracle.com>
      Signed-off-by: NMark Fasheh <mfasheh@suse.com>
      970e4936
  2. 02 12月, 2008 1 次提交
  3. 15 10月, 2008 3 次提交
  4. 26 1月, 2008 2 次提交
    • M
      ocfs2: clean up bh null checks · 2fe5c1d7
      Mark Fasheh 提交于
      If we know a buffer_head is non-null, then brelse() is unnecessary and
      put_bh() can be used instead. Also, an explicit check for NULL is
      unnecessary when using brelse(). This patch only covers buffer_head_io.c and
      resize.c, which have recently added code which exhibits this problem.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      2fe5c1d7
    • T
      [PATCH 1/2] ocfs2: Add group extend for online resize · d659072f
      Tao Ma 提交于
      This patch adds the ability for a userspace program to request an extend of
      last cluster group on an Ocfs2 file system. The request is made via ioctl,
      OCFS2_IOC_GROUP_EXTEND. This is derived from EXT3_IOC_GROUP_EXTEND, but is
      obviously Ocfs2 specific.
      
      tunefs.ocfs2 would call this for an online-resize operation if the last
      cluster group isn't full.
      Signed-off-by: NTao Ma <tao.ma@oracle.com>
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      d659072f
  5. 21 9月, 2006 1 次提交
  6. 25 3月, 2006 1 次提交
  7. 04 2月, 2006 1 次提交
  8. 04 1月, 2006 1 次提交