mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
ee6d434479
commit
e08d0f2004
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user