diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr_leaf.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_attr_leaf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_attr_leaf.c b/fs/xfs/libxfs/xfs_attr_leaf.c index 2652d00842d6..e60eba7f129c 100644 --- a/fs/xfs/libxfs/xfs_attr_leaf.c +++ b/fs/xfs/libxfs/xfs_attr_leaf.c | |||
@@ -251,7 +251,7 @@ xfs_attr3_leaf_verify( | |||
251 | if (xfs_sb_version_hascrc(&mp->m_sb)) { | 251 | if (xfs_sb_version_hascrc(&mp->m_sb)) { |
252 | struct xfs_da3_node_hdr *hdr3 = bp->b_addr; | 252 | struct xfs_da3_node_hdr *hdr3 = bp->b_addr; |
253 | 253 | ||
254 | if (ichdr.magic != XFS_ATTR3_LEAF_MAGIC) | 254 | if (hdr3->info.hdr.magic != cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) |
255 | return __this_address; | 255 | return __this_address; |
256 | 256 | ||
257 | if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid)) | 257 | if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid)) |
@@ -261,7 +261,7 @@ xfs_attr3_leaf_verify( | |||
261 | if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) | 261 | if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) |
262 | return __this_address; | 262 | return __this_address; |
263 | } else { | 263 | } else { |
264 | if (ichdr.magic != XFS_ATTR_LEAF_MAGIC) | 264 | if (leaf->hdr.info.magic != cpu_to_be16(XFS_ATTR_LEAF_MAGIC)) |
265 | return __this_address; | 265 | return __this_address; |
266 | } | 266 | } |
267 | /* | 267 | /* |