aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_ialloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.c')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c
index d32152fc8a6c..fe9898875097 100644
--- a/fs/xfs/libxfs/xfs_ialloc.c
+++ b/fs/xfs/libxfs/xfs_ialloc.c
@@ -2508,7 +2508,7 @@ xfs_agi_verify(
2508 /* 2508 /*
2509 * Validate the magic number of the agi block. 2509 * Validate the magic number of the agi block.
2510 */ 2510 */
2511 if (agi->agi_magicnum != cpu_to_be32(XFS_AGI_MAGIC)) 2511 if (!xfs_verify_magic(bp, agi->agi_magicnum))
2512 return __this_address; 2512 return __this_address;
2513 if (!XFS_AGI_GOOD_VERSION(be32_to_cpu(agi->agi_versionnum))) 2513 if (!XFS_AGI_GOOD_VERSION(be32_to_cpu(agi->agi_versionnum)))
2514 return __this_address; 2514 return __this_address;
@@ -2582,6 +2582,7 @@ xfs_agi_write_verify(
2582 2582
2583const struct xfs_buf_ops xfs_agi_buf_ops = { 2583const struct xfs_buf_ops xfs_agi_buf_ops = {
2584 .name = "xfs_agi", 2584 .name = "xfs_agi",
2585 .magic = { cpu_to_be32(XFS_AGI_MAGIC), cpu_to_be32(XFS_AGI_MAGIC) },
2585 .verify_read = xfs_agi_read_verify, 2586 .verify_read = xfs_agi_read_verify,
2586 .verify_write = xfs_agi_write_verify, 2587 .verify_write = xfs_agi_write_verify,
2587 .verify_struct = xfs_agi_verify, 2588 .verify_struct = xfs_agi_verify,