summaryrefslogtreecommitdiff
path: root/fs
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-17 18:55:22 -0700
commit7b2cfe7f94fd4dbc5c61b579ed661c828f74f33d (patch)
tree3f1aeea9e842ad73234bfbe6881eb701b08d91eb /fs
parentb51e8dc634d82164f08d863008a7107e38c74d05 (diff)
xfs: add realtime refcount btree block detection to log recovery
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>
Diffstat (limited to 'fs')
-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 1db364661585..8c2d4ff70561 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;