Commit cab09a81 authored by Dave Chinner's avatar Dave Chinner Committed by Ben Myers

xfs: fix da node magic number mismatches

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarBen Myers <bpm@sgi.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent 946217ba
...@@ -310,8 +310,8 @@ xfs_da3_node_read( ...@@ -310,8 +310,8 @@ xfs_da3_node_read(
int type; int type;
switch (be16_to_cpu(info->magic)) { switch (be16_to_cpu(info->magic)) {
case XFS_DA3_NODE_MAGIC:
case XFS_DA_NODE_MAGIC: case XFS_DA_NODE_MAGIC:
case XFS_DA3_NODE_MAGIC:
type = XFS_BLFT_DA_NODE_BUF; type = XFS_BLFT_DA_NODE_BUF;
break; break;
case XFS_ATTR_LEAF_MAGIC: case XFS_ATTR_LEAF_MAGIC:
......
...@@ -2039,7 +2039,7 @@ xlog_recovery_validate_buf_type( ...@@ -2039,7 +2039,7 @@ xlog_recovery_validate_buf_type(
case XFS_BLFT_ATTR_RMT_BUF: case XFS_BLFT_ATTR_RMT_BUF:
if (!xfs_sb_version_hascrc(&mp->m_sb)) if (!xfs_sb_version_hascrc(&mp->m_sb))
break; break;
if (magicda != XFS_ATTR3_RMT_MAGIC) { if (magic32 != XFS_ATTR3_RMT_MAGIC) {
xfs_warn(mp, "Bad attr remote magic!"); xfs_warn(mp, "Bad attr remote magic!");
ASSERT(0); ASSERT(0);
break; break;
...@@ -2135,7 +2135,6 @@ xlog_recover_do_reg_buffer( ...@@ -2135,7 +2135,6 @@ xlog_recover_do_reg_buffer(
ASSERT(i == item->ri_total); ASSERT(i == item->ri_total);
xlog_recovery_validate_buf_type(mp, bp, buf_f); xlog_recovery_validate_buf_type(mp, bp, buf_f);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment