Skip to content

Commit cab09a8

Browse files
dgchinnerBen Myers
authored andcommitted
xfs: fix da node magic number mismatches
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
1 parent 946217b commit cab09a8

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

fs/xfs/xfs_da_btree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ xfs_da3_node_read(
310310
int type;
311311

312312
switch (be16_to_cpu(info->magic)) {
313-
case XFS_DA3_NODE_MAGIC:
314313
case XFS_DA_NODE_MAGIC:
314+
case XFS_DA3_NODE_MAGIC:
315315
type = XFS_BLFT_DA_NODE_BUF;
316316
break;
317317
case XFS_ATTR_LEAF_MAGIC:

fs/xfs/xfs_log_recover.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ xlog_recovery_validate_buf_type(
20392039
case XFS_BLFT_ATTR_RMT_BUF:
20402040
if (!xfs_sb_version_hascrc(&mp->m_sb))
20412041
break;
2042-
if (magicda != XFS_ATTR3_RMT_MAGIC) {
2042+
if (magic32 != XFS_ATTR3_RMT_MAGIC) {
20432043
xfs_warn(mp, "Bad attr remote magic!");
20442044
ASSERT(0);
20452045
break;
@@ -2135,7 +2135,6 @@ xlog_recover_do_reg_buffer(
21352135
ASSERT(i == item->ri_total);
21362136

21372137
xlog_recovery_validate_buf_type(mp, bp, buf_f);
2138-
21392138
}
21402139

21412140
/*

0 commit comments

Comments
 (0)