[PATCH 09/12] xfs: fully initialise temp leaf in xfs_attr3_leaf_unbalance

Ben Myers bpm at sgi.com
Mon Aug 5 17:12:51 CDT 2013


On Fri, Jun 07, 2013 at 10:24:58PM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
> 
> xfs_attr3_leaf_unbalance() uses a temporary buffer for recombining
> the entries in two leaves when the destination leaf requires
> compaction. The temporary buffer ends up being copied back over the
> original destination buffer, so the header in the temporary buffer
> needs to contain all the information that is in the destination
> buffer.
> 
> To make sure the temporary buffer is fully initialised, once we've
> set up the temporary incore header appropriately, write is back to
> the temporary buffer before starting to move entries around.
> 
> Signed-off-by: Dave Chinner <dchinner at redhat.com>

Goes with commit 8517de2a81da830f5d90da66b4799f4040c76dc9

Reviewed-by: Ben Myers <bpm at sgi.com>



More information about the xfs mailing list