xfs: capture inode generation numbers in the ondisk exchmaps log item
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:24 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:24 +0000 (14:54 -0700)
commit14f19991020b3c712d626727c17599f134cc6efa
tree1b92e6e410b59e7d21b4d057db6c5e697a1f5ab6
parentb3e60f84838d5abc3a73d7ef0fc595dd1041c565
xfs: capture inode generation numbers in the ondisk exchmaps log item

Per some very late review comments, capture the generation numbers of
both inodes involved in a file content exchange operation so that we
don't accidentally target files with have been reallocated.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_log_recover.h
fs/xfs/xfs_exchmaps_item.c
fs/xfs/xfs_log_recover.c