1. 31 Mar, 2008 2 commits
    • Steven Whitehouse's avatar
      [GFS2] Streamline indirect pointer tree height calculation · ecc30c79
      Steven Whitehouse authored
      This patch improves the calculation of the tree height in order to reduce
      the number of operations which are carried out on each call to gfs2_block_map.
      In the common case, we now make a single comparison, rather than calculating
      the required tree height from scratch each time. Also in the case that the
      tree does need some extra height, we start from the current height rather from
      zero when we work out what the new height ought to be.
      
      In addition the di_height field is moved into the inode proper and reduced
      in size to a u8 since the value must be between 0 and GFS2_MAX_META_HEIGHT (10).
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      ecc30c79
    • Steven Whitehouse's avatar
      [GFS2] Speed up gfs2_write_alloc_required, deprecate gfs2_extent_map · 941e6d7d
      Steven Whitehouse authored
      This patch removes the call to gfs2_extent_map from gfs2_write_alloc_required,
      instead we call gfs2_block_map directly. This results in fewer overall calls
      to gfs2_block_map in the multi-block case.
      
      Also, gfs2_extent_map is marked as deprecated so that people know that its
      going away as soon as all the callers have been converted.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      941e6d7d
  2. 30 Mar, 2008 30 commits
  3. 29 Mar, 2008 8 commits