diff options
author | Brian Foster <bfoster@redhat.com> | 2019-02-07 13:45:46 -0500 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-11 19:07:01 -0500 |
commit | 01e68f40bf7846b58d2734aa11b0cbcaadbeaa3e (patch) | |
tree | aa2d827811f0df449099c0feb2063e9f85792788 /fs/xfs/xfs_log_recover.c | |
parent | e34d3e74eb8f6eb020312cec747ff55ee1d1ca18 (diff) |
xfs: create a separate finobt verifier
The inobt verifier is reused for the inobt and finobt, which
prevents the ability to distinguish between magic values on a
per-tree basis. Create a separate finobt structure in preparation
for changes to enforce the appropriate magic value for the
associated tree. This patch has no functional change.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 9fe88d125f0a..228c754bb137 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -2445,11 +2445,13 @@ xlog_recover_validate_buf_type( | |||
2445 | bp->b_ops = &xfs_allocbt_buf_ops; | 2445 | bp->b_ops = &xfs_allocbt_buf_ops; |
2446 | break; | 2446 | break; |
2447 | case XFS_IBT_CRC_MAGIC: | 2447 | case XFS_IBT_CRC_MAGIC: |
2448 | case XFS_FIBT_CRC_MAGIC: | ||
2449 | case XFS_IBT_MAGIC: | 2448 | case XFS_IBT_MAGIC: |
2450 | case XFS_FIBT_MAGIC: | ||
2451 | bp->b_ops = &xfs_inobt_buf_ops; | 2449 | bp->b_ops = &xfs_inobt_buf_ops; |
2452 | break; | 2450 | break; |
2451 | case XFS_FIBT_CRC_MAGIC: | ||
2452 | case XFS_FIBT_MAGIC: | ||
2453 | bp->b_ops = &xfs_finobt_buf_ops; | ||
2454 | break; | ||
2453 | case XFS_BMAP_CRC_MAGIC: | 2455 | case XFS_BMAP_CRC_MAGIC: |
2454 | case XFS_BMAP_MAGIC: | 2456 | case XFS_BMAP_MAGIC: |
2455 | bp->b_ops = &xfs_bmbt_buf_ops; | 2457 | bp->b_ops = &xfs_bmbt_buf_ops; |