• Glen Overby's avatar
    [XFS] xfs_dir2_node_addname_int had reminants of an old block placement · 44a15e43
    Glen Overby authored
    algorithm in it.  The old algorithm appeared to look for the first
    place to put a new data block, and thus a new freespace block (this is
    where the 'foundindex' variable came from).  However, new space in a
    directory is always added at the lowest file offset as determined by
    the extent list.  So this stuff is never used.
    
    I completely ripped out the reminants of the old algorithm, and
    (again) moved the freespace block add code inside the conditional
    where a data block is added.
    
    SGI Modid: 2.5.x-xfs:slinx:159751a
    44a15e43
xfs_dir2_node.c 58.8 KB