diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/libxfs/xfs_ag.c | 2 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.c | 9 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_shared.h | 1 | ||||
-rw-r--r-- | fs/xfs/scrub/agheader_repair.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 6 |
5 files changed, 15 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_ag.c b/fs/xfs/libxfs/xfs_ag.c index 999ad8d00d43..bde67ef3ff43 100644 --- a/fs/xfs/libxfs/xfs_ag.c +++ b/fs/xfs/libxfs/xfs_ag.c | |||
@@ -361,7 +361,7 @@ xfs_ag_init_headers( | |||
361 | { /* FINO root block */ | 361 | { /* FINO root block */ |
362 | .daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_FIBT_BLOCK(mp)), | 362 | .daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_FIBT_BLOCK(mp)), |
363 | .numblks = BTOBB(mp->m_sb.sb_blocksize), | 363 | .numblks = BTOBB(mp->m_sb.sb_blocksize), |
364 | .ops = &xfs_inobt_buf_ops, | 364 | .ops = &xfs_finobt_buf_ops, |
365 | .work = &xfs_btroot_init, | 365 | .work = &xfs_btroot_init, |
366 | .type = XFS_BTNUM_FINO, | 366 | .type = XFS_BTNUM_FINO, |
367 | .need_init = xfs_sb_version_hasfinobt(&mp->m_sb) | 367 | .need_init = xfs_sb_version_hasfinobt(&mp->m_sb) |
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c index 9b25e7a0df47..798269eb4767 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.c +++ b/fs/xfs/libxfs/xfs_ialloc_btree.c | |||
@@ -333,6 +333,13 @@ const struct xfs_buf_ops xfs_inobt_buf_ops = { | |||
333 | .verify_struct = xfs_inobt_verify, | 333 | .verify_struct = xfs_inobt_verify, |
334 | }; | 334 | }; |
335 | 335 | ||
336 | const struct xfs_buf_ops xfs_finobt_buf_ops = { | ||
337 | .name = "xfs_finobt", | ||
338 | .verify_read = xfs_inobt_read_verify, | ||
339 | .verify_write = xfs_inobt_write_verify, | ||
340 | .verify_struct = xfs_inobt_verify, | ||
341 | }; | ||
342 | |||
336 | STATIC int | 343 | STATIC int |
337 | xfs_inobt_keys_inorder( | 344 | xfs_inobt_keys_inorder( |
338 | struct xfs_btree_cur *cur, | 345 | struct xfs_btree_cur *cur, |
@@ -389,7 +396,7 @@ static const struct xfs_btree_ops xfs_finobt_ops = { | |||
389 | .init_rec_from_cur = xfs_inobt_init_rec_from_cur, | 396 | .init_rec_from_cur = xfs_inobt_init_rec_from_cur, |
390 | .init_ptr_from_cur = xfs_finobt_init_ptr_from_cur, | 397 | .init_ptr_from_cur = xfs_finobt_init_ptr_from_cur, |
391 | .key_diff = xfs_inobt_key_diff, | 398 | .key_diff = xfs_inobt_key_diff, |
392 | .buf_ops = &xfs_inobt_buf_ops, | 399 | .buf_ops = &xfs_finobt_buf_ops, |
393 | .diff_two_keys = xfs_inobt_diff_two_keys, | 400 | .diff_two_keys = xfs_inobt_diff_two_keys, |
394 | .keys_inorder = xfs_inobt_keys_inorder, | 401 | .keys_inorder = xfs_inobt_keys_inorder, |
395 | .recs_inorder = xfs_inobt_recs_inorder, | 402 | .recs_inorder = xfs_inobt_recs_inorder, |
diff --git a/fs/xfs/libxfs/xfs_shared.h b/fs/xfs/libxfs/xfs_shared.h index 1c5debe748f0..9855f4d2f98f 100644 --- a/fs/xfs/libxfs/xfs_shared.h +++ b/fs/xfs/libxfs/xfs_shared.h | |||
@@ -36,6 +36,7 @@ extern const struct xfs_buf_ops xfs_dquot_buf_ops; | |||
36 | extern const struct xfs_buf_ops xfs_symlink_buf_ops; | 36 | extern const struct xfs_buf_ops xfs_symlink_buf_ops; |
37 | extern const struct xfs_buf_ops xfs_agi_buf_ops; | 37 | extern const struct xfs_buf_ops xfs_agi_buf_ops; |
38 | extern const struct xfs_buf_ops xfs_inobt_buf_ops; | 38 | extern const struct xfs_buf_ops xfs_inobt_buf_ops; |
39 | extern const struct xfs_buf_ops xfs_finobt_buf_ops; | ||
39 | extern const struct xfs_buf_ops xfs_inode_buf_ops; | 40 | extern const struct xfs_buf_ops xfs_inode_buf_ops; |
40 | extern const struct xfs_buf_ops xfs_inode_buf_ra_ops; | 41 | extern const struct xfs_buf_ops xfs_inode_buf_ra_ops; |
41 | extern const struct xfs_buf_ops xfs_dquot_buf_ops; | 42 | extern const struct xfs_buf_ops xfs_dquot_buf_ops; |
diff --git a/fs/xfs/scrub/agheader_repair.c b/fs/xfs/scrub/agheader_repair.c index 03d1e15cceba..673be3cf7b8d 100644 --- a/fs/xfs/scrub/agheader_repair.c +++ b/fs/xfs/scrub/agheader_repair.c | |||
@@ -879,7 +879,7 @@ xrep_agi( | |||
879 | }, | 879 | }, |
880 | [XREP_AGI_FINOBT] = { | 880 | [XREP_AGI_FINOBT] = { |
881 | .rmap_owner = XFS_RMAP_OWN_INOBT, | 881 | .rmap_owner = XFS_RMAP_OWN_INOBT, |
882 | .buf_ops = &xfs_inobt_buf_ops, | 882 | .buf_ops = &xfs_finobt_buf_ops, |
883 | .magic = XFS_FIBT_CRC_MAGIC, | 883 | .magic = XFS_FIBT_CRC_MAGIC, |
884 | }, | 884 | }, |
885 | [XREP_AGI_END] = { | 885 | [XREP_AGI_END] = { |
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; |