[PATCH 36/47] xfs: convert unwritten status of reverse mappings

Dave Chinner david at fromorbit.com
Tue Aug 2 21:00:39 CDT 2016


On Wed, Jul 20, 2016 at 10:00:02PM -0700, Darrick J. Wong wrote:
> Provide a function to convert an unwritten extent to a real one and
> vice versa.
> 
> v2: Move unwritten bit to rm_offset.
> 
> v3: Fix a bug where we touched the wrong btree_irec field due to a
> stupid cut-and-paste error.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong at oracle.com>

I've added a comment to the commit message that the algorithm and
code structure has been derived from
xfs_bmap_add_extent_unwritten_real(). It looks to be correct.

-Dave.
-- 
Dave Chinner
david at fromorbit.com



More information about the xfs mailing list