diff options
| author | Darrick J. Wong <[email protected]> | 2024-11-21 00:20:51 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-12-23 21:06:11 +0000 |
| commit | e08d0f2004cd925c6b68f982ac7de6ef77dab8ea (patch) | |
| tree | aaa441cd88d7ebb188ac704b32065578d1584e98 | |
| parent | xfs: support recovering refcount intent items targetting realtime extents (diff) | |
| download | kernel-e08d0f2004cd925c6b68f982ac7de6ef77dab8ea.tar.gz kernel-e08d0f2004cd925c6b68f982ac7de6ef77dab8ea.zip | |
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" <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
| -rw-r--r-- | fs/xfs/xfs_buf_item_recover.c | 4 |
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 4f2e4ea29e1f..b05d5b81f642 100644 --- a/fs/xfs/xfs_buf_item_recover.c +++ b/fs/xfs/xfs_buf_item_recover.c @@ -271,6 +271,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; @@ -859,6 +862,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; |
