aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_da_btree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/libxfs/xfs_da_btree.c')
-rw-r--r--fs/xfs/libxfs/xfs_da_btree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_da_btree.c b/fs/xfs/libxfs/xfs_da_btree.c
index 376bee94b5dd..355322688c9f 100644
--- a/fs/xfs/libxfs/xfs_da_btree.c
+++ b/fs/xfs/libxfs/xfs_da_btree.c
@@ -132,7 +132,7 @@ xfs_da3_node_verify(
132 if (xfs_sb_version_hascrc(&mp->m_sb)) { 132 if (xfs_sb_version_hascrc(&mp->m_sb)) {
133 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; 133 struct xfs_da3_node_hdr *hdr3 = bp->b_addr;
134 134
135 if (ichdr.magic != XFS_DA3_NODE_MAGIC) 135 if (hdr3->info.hdr.magic != cpu_to_be16(XFS_DA3_NODE_MAGIC))
136 return __this_address; 136 return __this_address;
137 137
138 if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid)) 138 if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid))
@@ -142,7 +142,7 @@ xfs_da3_node_verify(
142 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) 142 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn)))
143 return __this_address; 143 return __this_address;
144 } else { 144 } else {
145 if (ichdr.magic != XFS_DA_NODE_MAGIC) 145 if (hdr->hdr.info.magic != cpu_to_be16(XFS_DA_NODE_MAGIC))
146 return __this_address; 146 return __this_address;
147 } 147 }
148 if (ichdr.level == 0) 148 if (ichdr.level == 0)