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

Dave Chinner
2016-08-03T02:00:44Z

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@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@fromorbit.com