| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 10/24] xfs: add refcount btree block detection to log recovery |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Wed, 29 Jul 2015 15:34:02 -0700 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20150729223258.17414.91354.stgit@xxxxxxxxxxxxxxxx> |
| References: | <20150729223258.17414.91354.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Teach log recovery how to deal with refcount btree blocks.
Signed-off-by: Darrick J. Wong <darrick.wong@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 7c2f1ca..54e6c89 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -1848,6 +1848,7 @@ xlog_recover_get_buf_lsn(
case XFS_ABTB_MAGIC:
case XFS_ABTC_MAGIC:
case XFS_RMAP_CRC_MAGIC:
+ case XFS_REFC_CRC_MAGIC:
case XFS_IBT_CRC_MAGIC:
case XFS_IBT_MAGIC: {
struct xfs_btree_block *btb = blk;
@@ -2004,6 +2005,9 @@ xlog_recover_validate_buf_type(
case XFS_RMAP_CRC_MAGIC:
bp->b_ops = &xfs_rmapbt_buf_ops;
break;
+ case XFS_REFC_CRC_MAGIC:
+ bp->b_ops = &xfs_refcountbt_buf_ops;
+ break;
default:
xfs_warn(mp, "Bad btree block magic!");
ASSERT(0);
|
| Previous by Date: | [PATCH 11/24] xfs: map an inode's offset to an exact physical block, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 12/24] xfs: add reflink feature flag to geometry, Darrick J. Wong |
| Previous by Thread: | Re: [PATCH 11/24] xfs: map an inode's offset to an exact physical block, Darrick J. Wong |
| Next by Thread: | [PATCH 12/24] xfs: add reflink feature flag to geometry, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |