xfs: convert unwritten status of reverse mappings
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 02:03:19 +0000 (12:03 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 02:03:19 +0000 (12:03 +1000)
commitfb7d9267692a5cdc01648bf4c8fdca51054bc0f2
tree22ebaabe3a53ebb96031bcdf9d2fc0104ddbe521
parentf922cd90b82c5e78a860f194728d4dadc8575106
xfs: convert unwritten status of reverse mappings

Provide a function to convert an unwritten rmap extent to a real one
and vice versa.

[ dchinner: Note that this algorithm and code was derived from the
  existing bmapbt unwritten extent conversion code in
  xfs_bmap_add_extent_unwritten_real(). ]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/xfs_trace.h