]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: create rmap update intent log items
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Aug 2016 04:49:16 +0000 (14:49 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 04:49:16 +0000 (14:49 +1000)
commite2d7f10f43491be4755e712e45a383060fad9bac
treeb7eae8b9eed2e5c6f412608e063bfdd6fb69a069
parentb26675c4a56402c45d4890d42168251290d080ef
xfs: create rmap update intent log items

Source kernel commit: 5880f2d78ff17c6ee7c7f6d4071bfd13090c264c

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/xfs_rmap_item.c [new file with mode: 0644]
fs/xfs/xfs_rmap_item.h [new file with mode: 0644]
libxfs/xfs_log_format.h
libxfs/xfs_rmap.h