xfs: create rmap update intent log items
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 02:04:45 +0000 (12:04 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 02:04:45 +0000 (12:04 +1000)
commit5880f2d78ff17c6ee7c7f6d4071bfd13090c264c
tree6f90df23bcb16a03e1e1bb90bccf2336467c0cba
parentabf09233817b5ea1241db0c187136d3b4738d218
xfs: create rmap update intent log items

Create rmap update intent/done log items to record redo information in
the log.  Because we need to roll transactions between updating the
bmbt mapping and updating the reverse mapping, we also have to track
the status of the metadata updates that will be recorded in the
post-roll transactions, just in case we crash before committing the
final transaction.  This mechanism enables log recovery to finish what
was already started.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_rmap.h
fs/xfs/xfs_rmap_item.c [new file with mode: 0644]
fs/xfs/xfs_rmap_item.h [new file with mode: 0644]
fs/xfs/xfs_super.c