aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:18:11 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-09-12 17:03:31 -0700
commit77c3adc7e75be4a73dbfbee03ccbe1dfe11c9420 (patch)
treec7bd3cffdaeda2fb2b7a026df64035c12830758e
parentcaf789fdc622b6af86b0a10844d430849c5bd08e (diff)
downloadxfs-linux-77c3adc7e75be4a73dbfbee03ccbe1dfe11c9420.tar.gz
xfs: add realtime refcount btree block detection to log recovery
Notice: this object is not reachable from any branch.
Identify rt refcount btree blocks in the log correctly so that we can validate them during log recovery. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Notice: this object is not reachable from any branch.
-rw-r--r--fs/xfs/xfs_buf_item_recover.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf_item_recover.c b/fs/xfs/xfs_buf_item_recover.c
index 1db364661585a..8c2d4ff705619 100644
--- a/fs/xfs/xfs_buf_item_recover.c
+++ b/fs/xfs/xfs_buf_item_recover.c
@@ -257,6 +257,9 @@ xlog_recover_validate_buf_type(
case XFS_REFC_CRC_MAGIC:
bp->b_ops = &xfs_refcountbt_buf_ops;
break;
+ case XFS_RTREFC_CRC_MAGIC:
+ bp->b_ops = &xfs_rtrefcountbt_buf_ops;
+ break;
default:
warnmsg = "Bad btree block magic!";
break;
@@ -743,6 +746,7 @@ xlog_recover_get_buf_lsn(
break;
}
case XFS_RTRMAP_CRC_MAGIC:
+ case XFS_RTREFC_CRC_MAGIC:
case XFS_BMAP_CRC_MAGIC:
case XFS_BMAP_MAGIC: {
struct xfs_btree_block *btb = blk;