Skip to content

Commit

Permalink
xfs: fix da node magic number mismatches
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
  • Loading branch information
Dave Chinner authored and Ben Myers committed May 1, 2013
1 parent 946217b commit cab09a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_da_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ xfs_da3_node_read(
int type;

switch (be16_to_cpu(info->magic)) {
case XFS_DA3_NODE_MAGIC:
case XFS_DA_NODE_MAGIC:
case XFS_DA3_NODE_MAGIC:
type = XFS_BLFT_DA_NODE_BUF;
break;
case XFS_ATTR_LEAF_MAGIC:
Expand Down
3 changes: 1 addition & 2 deletions fs/xfs/xfs_log_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -2039,7 +2039,7 @@ xlog_recovery_validate_buf_type(
case XFS_BLFT_ATTR_RMT_BUF:
if (!xfs_sb_version_hascrc(&mp->m_sb))
break;
if (magicda != XFS_ATTR3_RMT_MAGIC) {
if (magic32 != XFS_ATTR3_RMT_MAGIC) {
xfs_warn(mp, "Bad attr remote magic!");
ASSERT(0);
break;
Expand Down Expand Up @@ -2135,7 +2135,6 @@ xlog_recover_do_reg_buffer(
ASSERT(i == item->ri_total);

xlog_recovery_validate_buf_type(mp, bp, buf_f);

}

/*
Expand Down

0 comments on commit cab09a8

Please sign in to comment.