| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 11/20] xfs: add realtime rmap btree block detection to log recovery |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 25 Aug 2016 16:44:36 -0700 |
| Cc: | linux-xfs@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, Dave Chinner <dchinner@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <147216860614.3688.3200692982609112535.stgit@xxxxxxxxxxxxxxxx> |
| References: | <147216860614.3688.3200692982609112535.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Identify rtrmapbt blocks in the log correctly so that we can
validate them during log recovery.
Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
fs/xfs/xfs_log_recover.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index c9c05b9..dc2c80e 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2247,6 +2247,7 @@ xlog_recover_get_buf_lsn(
uuid = &btb->bb_u.s.bb_uuid;
break;
}
+ case XFS_RTRMAP_CRC_MAGIC:
case XFS_BMAP_CRC_MAGIC:
case XFS_BMAP_MAGIC: {
struct xfs_btree_block *btb = blk;
@@ -2407,6 +2408,9 @@ xlog_recover_validate_buf_type(
case XFS_BMAP_MAGIC:
bp->b_ops = &xfs_bmbt_buf_ops;
break;
+ case XFS_RTRMAP_CRC_MAGIC:
+ bp->b_ops = &xfs_rtrmapbt_buf_ops;
+ break;
case XFS_RMAP_CRC_MAGIC:
bp->b_ops = &xfs_rmapbt_buf_ops;
break;
|
| Previous by Date: | [PATCH 10/20] xfs: add a realtime flag to the rmap update log redo items, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 12/20] xfs: add realtime reverse map inode to superblock, Darrick J. Wong |
| Previous by Thread: | [PATCH 10/20] xfs: add a realtime flag to the rmap update log redo items, Darrick J. Wong |
| Next by Thread: | [PATCH 12/20] xfs: add realtime reverse map inode to superblock, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |