diff options
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.c | 6 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.h | 5 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 3 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.h | 2 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_btree.c | 2 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_btree.h | 6 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 2 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.c | 2 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_refcount.c | 22 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_refcount_btree.c | 5 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_refcount_btree.h | 3 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_rmap.c | 3 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_rmap_btree.c | 5 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_rmap_btree.h | 2 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_sb.c | 10 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_trans_resv.c | 10 | ||||
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_buf.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_buf.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_filestream.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.h | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_iops.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_log.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_log.h | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_log_cil.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_super.c | 13 |
27 files changed, 48 insertions, 76 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index 39387bdd225d..4bcc095fe44a 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c | |||
@@ -1947,7 +1947,7 @@ void | |||
1947 | xfs_alloc_compute_maxlevels( | 1947 | xfs_alloc_compute_maxlevels( |
1948 | xfs_mount_t *mp) /* file system mount structure */ | 1948 | xfs_mount_t *mp) /* file system mount structure */ |
1949 | { | 1949 | { |
1950 | mp->m_ag_maxlevels = xfs_btree_compute_maxlevels(mp, mp->m_alloc_mnr, | 1950 | mp->m_ag_maxlevels = xfs_btree_compute_maxlevels(mp->m_alloc_mnr, |
1951 | (mp->m_sb.sb_agblocks + 1) / 2); | 1951 | (mp->m_sb.sb_agblocks + 1) / 2); |
1952 | } | 1952 | } |
1953 | 1953 | ||
@@ -1959,7 +1959,6 @@ xfs_alloc_compute_maxlevels( | |||
1959 | */ | 1959 | */ |
1960 | xfs_extlen_t | 1960 | xfs_extlen_t |
1961 | xfs_alloc_longest_free_extent( | 1961 | xfs_alloc_longest_free_extent( |
1962 | struct xfs_mount *mp, | ||
1963 | struct xfs_perag *pag, | 1962 | struct xfs_perag *pag, |
1964 | xfs_extlen_t need, | 1963 | xfs_extlen_t need, |
1965 | xfs_extlen_t reserved) | 1964 | xfs_extlen_t reserved) |
@@ -2038,8 +2037,7 @@ xfs_alloc_space_available( | |||
2038 | 2037 | ||
2039 | /* do we have enough contiguous free space for the allocation? */ | 2038 | /* do we have enough contiguous free space for the allocation? */ |
2040 | alloc_len = args->minlen + (args->alignment - 1) + args->minalignslop; | 2039 | alloc_len = args->minlen + (args->alignment - 1) + args->minalignslop; |
2041 | longest = xfs_alloc_longest_free_extent(args->mp, pag, min_free, | 2040 | longest = xfs_alloc_longest_free_extent(pag, min_free, reservation); |
2042 | reservation); | ||
2043 | if (longest < alloc_len) | 2041 | if (longest < alloc_len) |
2044 | return false; | 2042 | return false; |
2045 | 2043 | ||
diff --git a/fs/xfs/libxfs/xfs_alloc.h b/fs/xfs/libxfs/xfs_alloc.h index a311a2414a6b..cbf789ea5a4e 100644 --- a/fs/xfs/libxfs/xfs_alloc.h +++ b/fs/xfs/libxfs/xfs_alloc.h | |||
@@ -116,9 +116,8 @@ xfs_alloc_allow_busy_reuse(int datatype) | |||
116 | unsigned int xfs_alloc_set_aside(struct xfs_mount *mp); | 116 | unsigned int xfs_alloc_set_aside(struct xfs_mount *mp); |
117 | unsigned int xfs_alloc_ag_max_usable(struct xfs_mount *mp); | 117 | unsigned int xfs_alloc_ag_max_usable(struct xfs_mount *mp); |
118 | 118 | ||
119 | xfs_extlen_t xfs_alloc_longest_free_extent(struct xfs_mount *mp, | 119 | xfs_extlen_t xfs_alloc_longest_free_extent(struct xfs_perag *pag, |
120 | struct xfs_perag *pag, xfs_extlen_t need, | 120 | xfs_extlen_t need, xfs_extlen_t reserved); |
121 | xfs_extlen_t reserved); | ||
122 | unsigned int xfs_alloc_min_freelist(struct xfs_mount *mp, | 121 | unsigned int xfs_alloc_min_freelist(struct xfs_mount *mp, |
123 | struct xfs_perag *pag); | 122 | struct xfs_perag *pag); |
124 | 123 | ||
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 3b03d886df66..6a7c2f03ea11 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c | |||
@@ -3225,7 +3225,7 @@ xfs_bmap_longest_free_extent( | |||
3225 | } | 3225 | } |
3226 | } | 3226 | } |
3227 | 3227 | ||
3228 | longest = xfs_alloc_longest_free_extent(mp, pag, | 3228 | longest = xfs_alloc_longest_free_extent(pag, |
3229 | xfs_alloc_min_freelist(mp, pag), | 3229 | xfs_alloc_min_freelist(mp, pag), |
3230 | xfs_ag_resv_needed(pag, XFS_AG_RESV_NONE)); | 3230 | xfs_ag_resv_needed(pag, XFS_AG_RESV_NONE)); |
3231 | if (*blen < longest) | 3231 | if (*blen < longest) |
@@ -5667,7 +5667,6 @@ xfs_bmap_collapse_extents( | |||
5667 | xfs_fileoff_t *next_fsb, | 5667 | xfs_fileoff_t *next_fsb, |
5668 | xfs_fileoff_t offset_shift_fsb, | 5668 | xfs_fileoff_t offset_shift_fsb, |
5669 | bool *done, | 5669 | bool *done, |
5670 | xfs_fileoff_t stop_fsb, | ||
5671 | xfs_fsblock_t *firstblock, | 5670 | xfs_fsblock_t *firstblock, |
5672 | struct xfs_defer_ops *dfops) | 5671 | struct xfs_defer_ops *dfops) |
5673 | { | 5672 | { |
diff --git a/fs/xfs/libxfs/xfs_bmap.h b/fs/xfs/libxfs/xfs_bmap.h index f3be6416260b..2b766b37096d 100644 --- a/fs/xfs/libxfs/xfs_bmap.h +++ b/fs/xfs/libxfs/xfs_bmap.h | |||
@@ -228,7 +228,7 @@ void xfs_bmap_del_extent_cow(struct xfs_inode *ip, | |||
228 | uint xfs_default_attroffset(struct xfs_inode *ip); | 228 | uint xfs_default_attroffset(struct xfs_inode *ip); |
229 | int xfs_bmap_collapse_extents(struct xfs_trans *tp, struct xfs_inode *ip, | 229 | int xfs_bmap_collapse_extents(struct xfs_trans *tp, struct xfs_inode *ip, |
230 | xfs_fileoff_t *next_fsb, xfs_fileoff_t offset_shift_fsb, | 230 | xfs_fileoff_t *next_fsb, xfs_fileoff_t offset_shift_fsb, |
231 | bool *done, xfs_fileoff_t stop_fsb, xfs_fsblock_t *firstblock, | 231 | bool *done, xfs_fsblock_t *firstblock, |
232 | struct xfs_defer_ops *dfops); | 232 | struct xfs_defer_ops *dfops); |
233 | int xfs_bmap_insert_extents(struct xfs_trans *tp, struct xfs_inode *ip, | 233 | int xfs_bmap_insert_extents(struct xfs_trans *tp, struct xfs_inode *ip, |
234 | xfs_fileoff_t *next_fsb, xfs_fileoff_t offset_shift_fsb, | 234 | xfs_fileoff_t *next_fsb, xfs_fileoff_t offset_shift_fsb, |
diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c index edc0193358a5..ac7d66427e42 100644 --- a/fs/xfs/libxfs/xfs_btree.c +++ b/fs/xfs/libxfs/xfs_btree.c | |||
@@ -4531,7 +4531,6 @@ xfs_btree_sblock_verify( | |||
4531 | */ | 4531 | */ |
4532 | uint | 4532 | uint |
4533 | xfs_btree_compute_maxlevels( | 4533 | xfs_btree_compute_maxlevels( |
4534 | struct xfs_mount *mp, | ||
4535 | uint *limits, | 4534 | uint *limits, |
4536 | unsigned long len) | 4535 | unsigned long len) |
4537 | { | 4536 | { |
@@ -4839,7 +4838,6 @@ xfs_btree_query_all( | |||
4839 | */ | 4838 | */ |
4840 | xfs_extlen_t | 4839 | xfs_extlen_t |
4841 | xfs_btree_calc_size( | 4840 | xfs_btree_calc_size( |
4842 | struct xfs_mount *mp, | ||
4843 | uint *limits, | 4841 | uint *limits, |
4844 | unsigned long long len) | 4842 | unsigned long long len) |
4845 | { | 4843 | { |
diff --git a/fs/xfs/libxfs/xfs_btree.h b/fs/xfs/libxfs/xfs_btree.h index 58e30c0975c3..9227159a751e 100644 --- a/fs/xfs/libxfs/xfs_btree.h +++ b/fs/xfs/libxfs/xfs_btree.h | |||
@@ -481,10 +481,8 @@ xfs_failaddr_t xfs_btree_lblock_v5hdr_verify(struct xfs_buf *bp, | |||
481 | xfs_failaddr_t xfs_btree_lblock_verify(struct xfs_buf *bp, | 481 | xfs_failaddr_t xfs_btree_lblock_verify(struct xfs_buf *bp, |
482 | unsigned int max_recs); | 482 | unsigned int max_recs); |
483 | 483 | ||
484 | uint xfs_btree_compute_maxlevels(struct xfs_mount *mp, uint *limits, | 484 | uint xfs_btree_compute_maxlevels(uint *limits, unsigned long len); |
485 | unsigned long len); | 485 | xfs_extlen_t xfs_btree_calc_size(uint *limits, unsigned long long len); |
486 | xfs_extlen_t xfs_btree_calc_size(struct xfs_mount *mp, uint *limits, | ||
487 | unsigned long long len); | ||
488 | 486 | ||
489 | /* return codes */ | 487 | /* return codes */ |
490 | #define XFS_BTREE_QUERY_RANGE_CONTINUE 0 /* keep iterating */ | 488 | #define XFS_BTREE_QUERY_RANGE_CONTINUE 0 /* keep iterating */ |
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index 0e2cf5f0be1f..de627fa19168 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c | |||
@@ -2406,7 +2406,7 @@ xfs_ialloc_compute_maxlevels( | |||
2406 | uint inodes; | 2406 | uint inodes; |
2407 | 2407 | ||
2408 | inodes = (1LL << XFS_INO_AGINO_BITS(mp)) >> XFS_INODES_PER_CHUNK_LOG; | 2408 | inodes = (1LL << XFS_INO_AGINO_BITS(mp)) >> XFS_INODES_PER_CHUNK_LOG; |
2409 | mp->m_in_maxlevels = xfs_btree_compute_maxlevels(mp, mp->m_inobt_mnr, | 2409 | mp->m_in_maxlevels = xfs_btree_compute_maxlevels(mp->m_inobt_mnr, |
2410 | inodes); | 2410 | inodes); |
2411 | } | 2411 | } |
2412 | 2412 | ||
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c index a2dd7f4a2719..367e9a0726e6 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.c +++ b/fs/xfs/libxfs/xfs_ialloc_btree.c | |||
@@ -556,7 +556,7 @@ xfs_inobt_max_size( | |||
556 | if (mp->m_inobt_mxr[0] == 0) | 556 | if (mp->m_inobt_mxr[0] == 0) |
557 | return 0; | 557 | return 0; |
558 | 558 | ||
559 | return xfs_btree_calc_size(mp, mp->m_inobt_mnr, | 559 | return xfs_btree_calc_size(mp->m_inobt_mnr, |
560 | (uint64_t)mp->m_sb.sb_agblocks * mp->m_sb.sb_inopblock / | 560 | (uint64_t)mp->m_sb.sb_agblocks * mp->m_sb.sb_inopblock / |
561 | XFS_INODES_PER_CHUNK); | 561 | XFS_INODES_PER_CHUNK); |
562 | } | 562 | } |
diff --git a/fs/xfs/libxfs/xfs_refcount.c b/fs/xfs/libxfs/xfs_refcount.c index bee68c23d612..560e28473024 100644 --- a/fs/xfs/libxfs/xfs_refcount.c +++ b/fs/xfs/libxfs/xfs_refcount.c | |||
@@ -351,7 +351,6 @@ xfs_refcount_merge_center_extents( | |||
351 | struct xfs_refcount_irec *center, | 351 | struct xfs_refcount_irec *center, |
352 | struct xfs_refcount_irec *right, | 352 | struct xfs_refcount_irec *right, |
353 | unsigned long long extlen, | 353 | unsigned long long extlen, |
354 | xfs_agblock_t *agbno, | ||
355 | xfs_extlen_t *aglen) | 354 | xfs_extlen_t *aglen) |
356 | { | 355 | { |
357 | int error; | 356 | int error; |
@@ -471,7 +470,6 @@ xfs_refcount_merge_right_extent( | |||
471 | struct xfs_btree_cur *cur, | 470 | struct xfs_btree_cur *cur, |
472 | struct xfs_refcount_irec *right, | 471 | struct xfs_refcount_irec *right, |
473 | struct xfs_refcount_irec *cright, | 472 | struct xfs_refcount_irec *cright, |
474 | xfs_agblock_t *agbno, | ||
475 | xfs_extlen_t *aglen) | 473 | xfs_extlen_t *aglen) |
476 | { | 474 | { |
477 | int error; | 475 | int error; |
@@ -749,7 +747,7 @@ xfs_refcount_merge_extents( | |||
749 | ulen < MAXREFCEXTLEN) { | 747 | ulen < MAXREFCEXTLEN) { |
750 | *shape_changed = true; | 748 | *shape_changed = true; |
751 | return xfs_refcount_merge_center_extents(cur, &left, &cleft, | 749 | return xfs_refcount_merge_center_extents(cur, &left, &cleft, |
752 | &right, ulen, agbno, aglen); | 750 | &right, ulen, aglen); |
753 | } | 751 | } |
754 | 752 | ||
755 | /* Try to merge left and cleft. */ | 753 | /* Try to merge left and cleft. */ |
@@ -778,7 +776,7 @@ xfs_refcount_merge_extents( | |||
778 | ulen < MAXREFCEXTLEN) { | 776 | ulen < MAXREFCEXTLEN) { |
779 | *shape_changed = true; | 777 | *shape_changed = true; |
780 | return xfs_refcount_merge_right_extent(cur, &right, &cright, | 778 | return xfs_refcount_merge_right_extent(cur, &right, &cright, |
781 | agbno, aglen); | 779 | aglen); |
782 | } | 780 | } |
783 | 781 | ||
784 | return error; | 782 | return error; |
@@ -1356,9 +1354,7 @@ xfs_refcount_adjust_cow_extents( | |||
1356 | struct xfs_btree_cur *cur, | 1354 | struct xfs_btree_cur *cur, |
1357 | xfs_agblock_t agbno, | 1355 | xfs_agblock_t agbno, |
1358 | xfs_extlen_t aglen, | 1356 | xfs_extlen_t aglen, |
1359 | enum xfs_refc_adjust_op adj, | 1357 | enum xfs_refc_adjust_op adj) |
1360 | struct xfs_defer_ops *dfops, | ||
1361 | struct xfs_owner_info *oinfo) | ||
1362 | { | 1358 | { |
1363 | struct xfs_refcount_irec ext, tmp; | 1359 | struct xfs_refcount_irec ext, tmp; |
1364 | int error; | 1360 | int error; |
@@ -1437,8 +1433,7 @@ xfs_refcount_adjust_cow( | |||
1437 | struct xfs_btree_cur *cur, | 1433 | struct xfs_btree_cur *cur, |
1438 | xfs_agblock_t agbno, | 1434 | xfs_agblock_t agbno, |
1439 | xfs_extlen_t aglen, | 1435 | xfs_extlen_t aglen, |
1440 | enum xfs_refc_adjust_op adj, | 1436 | enum xfs_refc_adjust_op adj) |
1441 | struct xfs_defer_ops *dfops) | ||
1442 | { | 1437 | { |
1443 | bool shape_changed; | 1438 | bool shape_changed; |
1444 | int error; | 1439 | int error; |
@@ -1465,8 +1460,7 @@ xfs_refcount_adjust_cow( | |||
1465 | goto out_error; | 1460 | goto out_error; |
1466 | 1461 | ||
1467 | /* Now that we've taken care of the ends, adjust the middle extents */ | 1462 | /* Now that we've taken care of the ends, adjust the middle extents */ |
1468 | error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj, | 1463 | error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); |
1469 | dfops, NULL); | ||
1470 | if (error) | 1464 | if (error) |
1471 | goto out_error; | 1465 | goto out_error; |
1472 | 1466 | ||
@@ -1493,7 +1487,7 @@ __xfs_refcount_cow_alloc( | |||
1493 | 1487 | ||
1494 | /* Add refcount btree reservation */ | 1488 | /* Add refcount btree reservation */ |
1495 | return xfs_refcount_adjust_cow(rcur, agbno, aglen, | 1489 | return xfs_refcount_adjust_cow(rcur, agbno, aglen, |
1496 | XFS_REFCOUNT_ADJUST_COW_ALLOC, dfops); | 1490 | XFS_REFCOUNT_ADJUST_COW_ALLOC); |
1497 | } | 1491 | } |
1498 | 1492 | ||
1499 | /* | 1493 | /* |
@@ -1511,7 +1505,7 @@ __xfs_refcount_cow_free( | |||
1511 | 1505 | ||
1512 | /* Remove refcount btree reservation */ | 1506 | /* Remove refcount btree reservation */ |
1513 | return xfs_refcount_adjust_cow(rcur, agbno, aglen, | 1507 | return xfs_refcount_adjust_cow(rcur, agbno, aglen, |
1514 | XFS_REFCOUNT_ADJUST_COW_FREE, dfops); | 1508 | XFS_REFCOUNT_ADJUST_COW_FREE); |
1515 | } | 1509 | } |
1516 | 1510 | ||
1517 | /* Record a CoW staging extent in the refcount btree. */ | 1511 | /* Record a CoW staging extent in the refcount btree. */ |
@@ -1568,7 +1562,7 @@ struct xfs_refcount_recovery { | |||
1568 | /* Stuff an extent on the recovery list. */ | 1562 | /* Stuff an extent on the recovery list. */ |
1569 | STATIC int | 1563 | STATIC int |
1570 | xfs_refcount_recover_extent( | 1564 | xfs_refcount_recover_extent( |
1571 | struct xfs_btree_cur *cur, | 1565 | struct xfs_btree_cur *cur, |
1572 | union xfs_btree_rec *rec, | 1566 | union xfs_btree_rec *rec, |
1573 | void *priv) | 1567 | void *priv) |
1574 | { | 1568 | { |
diff --git a/fs/xfs/libxfs/xfs_refcount_btree.c b/fs/xfs/libxfs/xfs_refcount_btree.c index 265fdcefcbae..375abfeb6267 100644 --- a/fs/xfs/libxfs/xfs_refcount_btree.c +++ b/fs/xfs/libxfs/xfs_refcount_btree.c | |||
@@ -373,7 +373,6 @@ xfs_refcountbt_init_cursor( | |||
373 | */ | 373 | */ |
374 | int | 374 | int |
375 | xfs_refcountbt_maxrecs( | 375 | xfs_refcountbt_maxrecs( |
376 | struct xfs_mount *mp, | ||
377 | int blocklen, | 376 | int blocklen, |
378 | bool leaf) | 377 | bool leaf) |
379 | { | 378 | { |
@@ -390,7 +389,7 @@ void | |||
390 | xfs_refcountbt_compute_maxlevels( | 389 | xfs_refcountbt_compute_maxlevels( |
391 | struct xfs_mount *mp) | 390 | struct xfs_mount *mp) |
392 | { | 391 | { |
393 | mp->m_refc_maxlevels = xfs_btree_compute_maxlevels(mp, | 392 | mp->m_refc_maxlevels = xfs_btree_compute_maxlevels( |
394 | mp->m_refc_mnr, mp->m_sb.sb_agblocks); | 393 | mp->m_refc_mnr, mp->m_sb.sb_agblocks); |
395 | } | 394 | } |
396 | 395 | ||
@@ -400,7 +399,7 @@ xfs_refcountbt_calc_size( | |||
400 | struct xfs_mount *mp, | 399 | struct xfs_mount *mp, |
401 | unsigned long long len) | 400 | unsigned long long len) |
402 | { | 401 | { |
403 | return xfs_btree_calc_size(mp, mp->m_refc_mnr, len); | 402 | return xfs_btree_calc_size(mp->m_refc_mnr, len); |
404 | } | 403 | } |
405 | 404 | ||
406 | /* | 405 | /* |
diff --git a/fs/xfs/libxfs/xfs_refcount_btree.h b/fs/xfs/libxfs/xfs_refcount_btree.h index 9db008b955b7..2bc4694ef146 100644 --- a/fs/xfs/libxfs/xfs_refcount_btree.h +++ b/fs/xfs/libxfs/xfs_refcount_btree.h | |||
@@ -60,8 +60,7 @@ struct xfs_mount; | |||
60 | extern struct xfs_btree_cur *xfs_refcountbt_init_cursor(struct xfs_mount *mp, | 60 | extern struct xfs_btree_cur *xfs_refcountbt_init_cursor(struct xfs_mount *mp, |
61 | struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, | 61 | struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, |
62 | struct xfs_defer_ops *dfops); | 62 | struct xfs_defer_ops *dfops); |
63 | extern int xfs_refcountbt_maxrecs(struct xfs_mount *mp, int blocklen, | 63 | extern int xfs_refcountbt_maxrecs(int blocklen, bool leaf); |
64 | bool leaf); | ||
65 | extern void xfs_refcountbt_compute_maxlevels(struct xfs_mount *mp); | 64 | extern void xfs_refcountbt_compute_maxlevels(struct xfs_mount *mp); |
66 | 65 | ||
67 | extern xfs_extlen_t xfs_refcountbt_calc_size(struct xfs_mount *mp, | 66 | extern xfs_extlen_t xfs_refcountbt_calc_size(struct xfs_mount *mp, |
diff --git a/fs/xfs/libxfs/xfs_rmap.c b/fs/xfs/libxfs/xfs_rmap.c index 79822cf6ebe3..fba8d2718017 100644 --- a/fs/xfs/libxfs/xfs_rmap.c +++ b/fs/xfs/libxfs/xfs_rmap.c | |||
@@ -376,7 +376,6 @@ xfs_rmap_free_check_owner( | |||
376 | struct xfs_mount *mp, | 376 | struct xfs_mount *mp, |
377 | uint64_t ltoff, | 377 | uint64_t ltoff, |
378 | struct xfs_rmap_irec *rec, | 378 | struct xfs_rmap_irec *rec, |
379 | xfs_fsblock_t bno, | ||
380 | xfs_filblks_t len, | 379 | xfs_filblks_t len, |
381 | uint64_t owner, | 380 | uint64_t owner, |
382 | uint64_t offset, | 381 | uint64_t offset, |
@@ -519,7 +518,7 @@ xfs_rmap_unmap( | |||
519 | bno + len, out_error); | 518 | bno + len, out_error); |
520 | 519 | ||
521 | /* Check owner information. */ | 520 | /* Check owner information. */ |
522 | error = xfs_rmap_free_check_owner(mp, ltoff, <rec, bno, len, owner, | 521 | error = xfs_rmap_free_check_owner(mp, ltoff, <rec, len, owner, |
523 | offset, flags); | 522 | offset, flags); |
524 | if (error) | 523 | if (error) |
525 | goto out_error; | 524 | goto out_error; |
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.c b/fs/xfs/libxfs/xfs_rmap_btree.c index 8b0d0de1cd11..d756e0b84abf 100644 --- a/fs/xfs/libxfs/xfs_rmap_btree.c +++ b/fs/xfs/libxfs/xfs_rmap_btree.c | |||
@@ -499,7 +499,6 @@ xfs_rmapbt_init_cursor( | |||
499 | */ | 499 | */ |
500 | int | 500 | int |
501 | xfs_rmapbt_maxrecs( | 501 | xfs_rmapbt_maxrecs( |
502 | struct xfs_mount *mp, | ||
503 | int blocklen, | 502 | int blocklen, |
504 | int leaf) | 503 | int leaf) |
505 | { | 504 | { |
@@ -534,7 +533,7 @@ xfs_rmapbt_compute_maxlevels( | |||
534 | if (xfs_sb_version_hasreflink(&mp->m_sb)) | 533 | if (xfs_sb_version_hasreflink(&mp->m_sb)) |
535 | mp->m_rmap_maxlevels = XFS_BTREE_MAXLEVELS; | 534 | mp->m_rmap_maxlevels = XFS_BTREE_MAXLEVELS; |
536 | else | 535 | else |
537 | mp->m_rmap_maxlevels = xfs_btree_compute_maxlevels(mp, | 536 | mp->m_rmap_maxlevels = xfs_btree_compute_maxlevels( |
538 | mp->m_rmap_mnr, mp->m_sb.sb_agblocks); | 537 | mp->m_rmap_mnr, mp->m_sb.sb_agblocks); |
539 | } | 538 | } |
540 | 539 | ||
@@ -544,7 +543,7 @@ xfs_rmapbt_calc_size( | |||
544 | struct xfs_mount *mp, | 543 | struct xfs_mount *mp, |
545 | unsigned long long len) | 544 | unsigned long long len) |
546 | { | 545 | { |
547 | return xfs_btree_calc_size(mp, mp->m_rmap_mnr, len); | 546 | return xfs_btree_calc_size(mp->m_rmap_mnr, len); |
548 | } | 547 | } |
549 | 548 | ||
550 | /* | 549 | /* |
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.h b/fs/xfs/libxfs/xfs_rmap_btree.h index 19c08e933049..d68d96eed7ea 100644 --- a/fs/xfs/libxfs/xfs_rmap_btree.h +++ b/fs/xfs/libxfs/xfs_rmap_btree.h | |||
@@ -55,7 +55,7 @@ struct xfs_mount; | |||
55 | struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp, | 55 | struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp, |
56 | struct xfs_trans *tp, struct xfs_buf *bp, | 56 | struct xfs_trans *tp, struct xfs_buf *bp, |
57 | xfs_agnumber_t agno); | 57 | xfs_agnumber_t agno); |
58 | int xfs_rmapbt_maxrecs(struct xfs_mount *mp, int blocklen, int leaf); | 58 | int xfs_rmapbt_maxrecs(int blocklen, int leaf); |
59 | extern void xfs_rmapbt_compute_maxlevels(struct xfs_mount *mp); | 59 | extern void xfs_rmapbt_compute_maxlevels(struct xfs_mount *mp); |
60 | 60 | ||
61 | extern xfs_extlen_t xfs_rmapbt_calc_size(struct xfs_mount *mp, | 61 | extern xfs_extlen_t xfs_rmapbt_calc_size(struct xfs_mount *mp, |
diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c index 53433cc024fd..d9b94bd5f689 100644 --- a/fs/xfs/libxfs/xfs_sb.c +++ b/fs/xfs/libxfs/xfs_sb.c | |||
@@ -756,15 +756,13 @@ xfs_sb_mount_common( | |||
756 | mp->m_bmap_dmnr[0] = mp->m_bmap_dmxr[0] / 2; | 756 | mp->m_bmap_dmnr[0] = mp->m_bmap_dmxr[0] / 2; |
757 | mp->m_bmap_dmnr[1] = mp->m_bmap_dmxr[1] / 2; | 757 | mp->m_bmap_dmnr[1] = mp->m_bmap_dmxr[1] / 2; |
758 | 758 | ||
759 | mp->m_rmap_mxr[0] = xfs_rmapbt_maxrecs(mp, sbp->sb_blocksize, 1); | 759 | mp->m_rmap_mxr[0] = xfs_rmapbt_maxrecs(sbp->sb_blocksize, 1); |
760 | mp->m_rmap_mxr[1] = xfs_rmapbt_maxrecs(mp, sbp->sb_blocksize, 0); | 760 | mp->m_rmap_mxr[1] = xfs_rmapbt_maxrecs(sbp->sb_blocksize, 0); |
761 | mp->m_rmap_mnr[0] = mp->m_rmap_mxr[0] / 2; | 761 | mp->m_rmap_mnr[0] = mp->m_rmap_mxr[0] / 2; |
762 | mp->m_rmap_mnr[1] = mp->m_rmap_mxr[1] / 2; | 762 | mp->m_rmap_mnr[1] = mp->m_rmap_mxr[1] / 2; |
763 | 763 | ||
764 | mp->m_refc_mxr[0] = xfs_refcountbt_maxrecs(mp, sbp->sb_blocksize, | 764 | mp->m_refc_mxr[0] = xfs_refcountbt_maxrecs(sbp->sb_blocksize, true); |
765 | true); | 765 | mp->m_refc_mxr[1] = xfs_refcountbt_maxrecs(sbp->sb_blocksize, false); |
766 | mp->m_refc_mxr[1] = xfs_refcountbt_maxrecs(mp, sbp->sb_blocksize, | ||
767 | false); | ||
768 | mp->m_refc_mnr[0] = mp->m_refc_mxr[0] / 2; | 766 | mp->m_refc_mnr[0] = mp->m_refc_mxr[0] / 2; |
769 | mp->m_refc_mnr[1] = mp->m_refc_mxr[1] / 2; | 767 | mp->m_refc_mnr[1] = mp->m_refc_mxr[1] / 2; |
770 | 768 | ||
diff --git a/fs/xfs/libxfs/xfs_trans_resv.c b/fs/xfs/libxfs/xfs_trans_resv.c index 5f17641f040f..3bccdf73e141 100644 --- a/fs/xfs/libxfs/xfs_trans_resv.c +++ b/fs/xfs/libxfs/xfs_trans_resv.c | |||
@@ -734,8 +734,7 @@ xfs_calc_clear_agi_bucket_reservation( | |||
734 | * the xfs_disk_dquot_t: sizeof(struct xfs_disk_dquot) | 734 | * the xfs_disk_dquot_t: sizeof(struct xfs_disk_dquot) |
735 | */ | 735 | */ |
736 | STATIC uint | 736 | STATIC uint |
737 | xfs_calc_qm_setqlim_reservation( | 737 | xfs_calc_qm_setqlim_reservation(void) |
738 | struct xfs_mount *mp) | ||
739 | { | 738 | { |
740 | return xfs_calc_buf_res(1, sizeof(struct xfs_disk_dquot)); | 739 | return xfs_calc_buf_res(1, sizeof(struct xfs_disk_dquot)); |
741 | } | 740 | } |
@@ -772,8 +771,7 @@ xfs_calc_qm_quotaoff_reservation( | |||
772 | * the xfs_qoff_logitem_t: sizeof(struct xfs_qoff_logitem) * 2 | 771 | * the xfs_qoff_logitem_t: sizeof(struct xfs_qoff_logitem) * 2 |
773 | */ | 772 | */ |
774 | STATIC uint | 773 | STATIC uint |
775 | xfs_calc_qm_quotaoff_end_reservation( | 774 | xfs_calc_qm_quotaoff_end_reservation(void) |
776 | struct xfs_mount *mp) | ||
777 | { | 775 | { |
778 | return sizeof(struct xfs_qoff_logitem) * 2; | 776 | return sizeof(struct xfs_qoff_logitem) * 2; |
779 | } | 777 | } |
@@ -877,14 +875,14 @@ xfs_trans_resv_calc( | |||
877 | * The following transactions are logged in logical format with | 875 | * The following transactions are logged in logical format with |
878 | * a default log count. | 876 | * a default log count. |
879 | */ | 877 | */ |
880 | resp->tr_qm_setqlim.tr_logres = xfs_calc_qm_setqlim_reservation(mp); | 878 | resp->tr_qm_setqlim.tr_logres = xfs_calc_qm_setqlim_reservation(); |
881 | resp->tr_qm_setqlim.tr_logcount = XFS_DEFAULT_LOG_COUNT; | 879 | resp->tr_qm_setqlim.tr_logcount = XFS_DEFAULT_LOG_COUNT; |
882 | 880 | ||
883 | resp->tr_qm_quotaoff.tr_logres = xfs_calc_qm_quotaoff_reservation(mp); | 881 | resp->tr_qm_quotaoff.tr_logres = xfs_calc_qm_quotaoff_reservation(mp); |
884 | resp->tr_qm_quotaoff.tr_logcount = XFS_DEFAULT_LOG_COUNT; | 882 | resp->tr_qm_quotaoff.tr_logcount = XFS_DEFAULT_LOG_COUNT; |
885 | 883 | ||
886 | resp->tr_qm_equotaoff.tr_logres = | 884 | resp->tr_qm_equotaoff.tr_logres = |
887 | xfs_calc_qm_quotaoff_end_reservation(mp); | 885 | xfs_calc_qm_quotaoff_end_reservation(); |
888 | resp->tr_qm_equotaoff.tr_logcount = XFS_DEFAULT_LOG_COUNT; | 886 | resp->tr_qm_equotaoff.tr_logcount = XFS_DEFAULT_LOG_COUNT; |
889 | 887 | ||
890 | resp->tr_sb.tr_logres = xfs_calc_sb_reservation(mp); | 888 | resp->tr_sb.tr_logres = xfs_calc_sb_reservation(mp); |
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 05dee8fdd895..8cd8c412f52d 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c | |||
@@ -1326,7 +1326,6 @@ xfs_collapse_file_space( | |||
1326 | int error; | 1326 | int error; |
1327 | struct xfs_defer_ops dfops; | 1327 | struct xfs_defer_ops dfops; |
1328 | xfs_fsblock_t first_block; | 1328 | xfs_fsblock_t first_block; |
1329 | xfs_fileoff_t stop_fsb = XFS_B_TO_FSB(mp, VFS_I(ip)->i_size); | ||
1330 | xfs_fileoff_t next_fsb = XFS_B_TO_FSB(mp, offset + len); | 1329 | xfs_fileoff_t next_fsb = XFS_B_TO_FSB(mp, offset + len); |
1331 | xfs_fileoff_t shift_fsb = XFS_B_TO_FSB(mp, len); | 1330 | xfs_fileoff_t shift_fsb = XFS_B_TO_FSB(mp, len); |
1332 | uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); | 1331 | uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); |
@@ -1361,7 +1360,7 @@ xfs_collapse_file_space( | |||
1361 | 1360 | ||
1362 | xfs_defer_init(&dfops, &first_block); | 1361 | xfs_defer_init(&dfops, &first_block); |
1363 | error = xfs_bmap_collapse_extents(tp, ip, &next_fsb, shift_fsb, | 1362 | error = xfs_bmap_collapse_extents(tp, ip, &next_fsb, shift_fsb, |
1364 | &done, stop_fsb, &first_block, &dfops); | 1363 | &done, &first_block, &dfops); |
1365 | if (error) | 1364 | if (error) |
1366 | goto out_bmap_cancel; | 1365 | goto out_bmap_cancel; |
1367 | 1366 | ||
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index ac669a10c62f..55661cbdb51b 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -1754,7 +1754,6 @@ xfs_buftarg_shrink_count( | |||
1754 | 1754 | ||
1755 | void | 1755 | void |
1756 | xfs_free_buftarg( | 1756 | xfs_free_buftarg( |
1757 | struct xfs_mount *mp, | ||
1758 | struct xfs_buftarg *btp) | 1757 | struct xfs_buftarg *btp) |
1759 | { | 1758 | { |
1760 | unregister_shrinker(&btp->bt_shrinker); | 1759 | unregister_shrinker(&btp->bt_shrinker); |
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h index 2f4c91452861..edced162a674 100644 --- a/fs/xfs/xfs_buf.h +++ b/fs/xfs/xfs_buf.h | |||
@@ -388,7 +388,7 @@ xfs_buf_update_cksum(struct xfs_buf *bp, unsigned long cksum_offset) | |||
388 | */ | 388 | */ |
389 | extern xfs_buftarg_t *xfs_alloc_buftarg(struct xfs_mount *, | 389 | extern xfs_buftarg_t *xfs_alloc_buftarg(struct xfs_mount *, |
390 | struct block_device *, struct dax_device *); | 390 | struct block_device *, struct dax_device *); |
391 | extern void xfs_free_buftarg(struct xfs_mount *, struct xfs_buftarg *); | 391 | extern void xfs_free_buftarg(struct xfs_buftarg *); |
392 | extern void xfs_wait_buftarg(xfs_buftarg_t *); | 392 | extern void xfs_wait_buftarg(xfs_buftarg_t *); |
393 | extern int xfs_setsize_buftarg(xfs_buftarg_t *, unsigned int); | 393 | extern int xfs_setsize_buftarg(xfs_buftarg_t *, unsigned int); |
394 | 394 | ||
diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c index 5131a6e25fc9..3f8722e51dbe 100644 --- a/fs/xfs/xfs_filestream.c +++ b/fs/xfs/xfs_filestream.c | |||
@@ -198,7 +198,7 @@ xfs_filestream_pick_ag( | |||
198 | goto next_ag; | 198 | goto next_ag; |
199 | } | 199 | } |
200 | 200 | ||
201 | longest = xfs_alloc_longest_free_extent(mp, pag, | 201 | longest = xfs_alloc_longest_free_extent(pag, |
202 | xfs_alloc_min_freelist(mp, pag), | 202 | xfs_alloc_min_freelist(mp, pag), |
203 | xfs_ag_resv_needed(pag, XFS_AG_RESV_NONE)); | 203 | xfs_ag_resv_needed(pag, XFS_AG_RESV_NONE)); |
204 | if (((minlen && longest >= minlen) || | 204 | if (((minlen && longest >= minlen) || |
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index c2a16b305f08..c09774ca53ae 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1301,7 +1301,6 @@ xfs_create( | |||
1301 | int | 1301 | int |
1302 | xfs_create_tmpfile( | 1302 | xfs_create_tmpfile( |
1303 | struct xfs_inode *dp, | 1303 | struct xfs_inode *dp, |
1304 | struct dentry *dentry, | ||
1305 | umode_t mode, | 1304 | umode_t mode, |
1306 | struct xfs_inode **ipp) | 1305 | struct xfs_inode **ipp) |
1307 | { | 1306 | { |
@@ -2895,7 +2894,7 @@ xfs_rename_alloc_whiteout( | |||
2895 | struct xfs_inode *tmpfile; | 2894 | struct xfs_inode *tmpfile; |
2896 | int error; | 2895 | int error; |
2897 | 2896 | ||
2898 | error = xfs_create_tmpfile(dp, NULL, S_IFCHR | WHITEOUT_MODE, &tmpfile); | 2897 | error = xfs_create_tmpfile(dp, S_IFCHR | WHITEOUT_MODE, &tmpfile); |
2899 | if (error) | 2898 | if (error) |
2900 | return error; | 2899 | return error; |
2901 | 2900 | ||
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 64064126a859..1eebc53df7d7 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -393,8 +393,8 @@ int xfs_lookup(struct xfs_inode *dp, struct xfs_name *name, | |||
393 | struct xfs_inode **ipp, struct xfs_name *ci_name); | 393 | struct xfs_inode **ipp, struct xfs_name *ci_name); |
394 | int xfs_create(struct xfs_inode *dp, struct xfs_name *name, | 394 | int xfs_create(struct xfs_inode *dp, struct xfs_name *name, |
395 | umode_t mode, dev_t rdev, struct xfs_inode **ipp); | 395 | umode_t mode, dev_t rdev, struct xfs_inode **ipp); |
396 | int xfs_create_tmpfile(struct xfs_inode *dp, struct dentry *dentry, | 396 | int xfs_create_tmpfile(struct xfs_inode *dp, umode_t mode, |
397 | umode_t mode, struct xfs_inode **ipp); | 397 | struct xfs_inode **ipp); |
398 | int xfs_remove(struct xfs_inode *dp, struct xfs_name *name, | 398 | int xfs_remove(struct xfs_inode *dp, struct xfs_name *name, |
399 | struct xfs_inode *ip); | 399 | struct xfs_inode *ip); |
400 | int xfs_link(struct xfs_inode *tdp, struct xfs_inode *sip, | 400 | int xfs_link(struct xfs_inode *tdp, struct xfs_inode *sip, |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index e0307fbff911..c45acf0685e3 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -177,7 +177,7 @@ xfs_generic_create( | |||
177 | if (!tmpfile) { | 177 | if (!tmpfile) { |
178 | error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); | 178 | error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); |
179 | } else { | 179 | } else { |
180 | error = xfs_create_tmpfile(XFS_I(dir), dentry, mode, &ip); | 180 | error = xfs_create_tmpfile(XFS_I(dir), mode, &ip); |
181 | } | 181 | } |
182 | if (unlikely(error)) | 182 | if (unlikely(error)) |
183 | goto out_free_acl; | 183 | goto out_free_acl; |
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index b9c9c848146b..2fcd9ed5d075 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -560,7 +560,6 @@ xfs_log_done( | |||
560 | */ | 560 | */ |
561 | int | 561 | int |
562 | xfs_log_notify( | 562 | xfs_log_notify( |
563 | struct xfs_mount *mp, | ||
564 | struct xlog_in_core *iclog, | 563 | struct xlog_in_core *iclog, |
565 | xfs_log_callback_t *cb) | 564 | xfs_log_callback_t *cb) |
566 | { | 565 | { |
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index 7e2d62922a16..fa8ad31d587f 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h | |||
@@ -141,8 +141,7 @@ int xfs_log_mount_cancel(struct xfs_mount *); | |||
141 | xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp); | 141 | xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp); |
142 | xfs_lsn_t xlog_assign_tail_lsn_locked(struct xfs_mount *mp); | 142 | xfs_lsn_t xlog_assign_tail_lsn_locked(struct xfs_mount *mp); |
143 | void xfs_log_space_wake(struct xfs_mount *mp); | 143 | void xfs_log_space_wake(struct xfs_mount *mp); |
144 | int xfs_log_notify(struct xfs_mount *mp, | 144 | int xfs_log_notify(struct xlog_in_core *iclog, |
145 | struct xlog_in_core *iclog, | ||
146 | struct xfs_log_callback *callback_entry); | 145 | struct xfs_log_callback *callback_entry); |
147 | int xfs_log_release_iclog(struct xfs_mount *mp, | 146 | int xfs_log_release_iclog(struct xfs_mount *mp, |
148 | struct xlog_in_core *iclog); | 147 | struct xlog_in_core *iclog); |
diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c index cb376ac8a595..4668403b1741 100644 --- a/fs/xfs/xfs_log_cil.c +++ b/fs/xfs/xfs_log_cil.c | |||
@@ -848,7 +848,7 @@ restart: | |||
848 | /* attach all the transactions w/ busy extents to iclog */ | 848 | /* attach all the transactions w/ busy extents to iclog */ |
849 | ctx->log_cb.cb_func = xlog_cil_committed; | 849 | ctx->log_cb.cb_func = xlog_cil_committed; |
850 | ctx->log_cb.cb_arg = ctx; | 850 | ctx->log_cb.cb_arg = ctx; |
851 | error = xfs_log_notify(log->l_mp, commit_iclog, &ctx->log_cb); | 851 | error = xfs_log_notify(commit_iclog, &ctx->log_cb); |
852 | if (error) | 852 | if (error) |
853 | goto out_abort; | 853 | goto out_abort; |
854 | 854 | ||
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 612c1d5348b3..d71424052917 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -722,7 +722,7 @@ xfs_close_devices( | |||
722 | struct block_device *logdev = mp->m_logdev_targp->bt_bdev; | 722 | struct block_device *logdev = mp->m_logdev_targp->bt_bdev; |
723 | struct dax_device *dax_logdev = mp->m_logdev_targp->bt_daxdev; | 723 | struct dax_device *dax_logdev = mp->m_logdev_targp->bt_daxdev; |
724 | 724 | ||
725 | xfs_free_buftarg(mp, mp->m_logdev_targp); | 725 | xfs_free_buftarg(mp->m_logdev_targp); |
726 | xfs_blkdev_put(logdev); | 726 | xfs_blkdev_put(logdev); |
727 | fs_put_dax(dax_logdev); | 727 | fs_put_dax(dax_logdev); |
728 | } | 728 | } |
@@ -730,11 +730,11 @@ xfs_close_devices( | |||
730 | struct block_device *rtdev = mp->m_rtdev_targp->bt_bdev; | 730 | struct block_device *rtdev = mp->m_rtdev_targp->bt_bdev; |
731 | struct dax_device *dax_rtdev = mp->m_rtdev_targp->bt_daxdev; | 731 | struct dax_device *dax_rtdev = mp->m_rtdev_targp->bt_daxdev; |
732 | 732 | ||
733 | xfs_free_buftarg(mp, mp->m_rtdev_targp); | 733 | xfs_free_buftarg(mp->m_rtdev_targp); |
734 | xfs_blkdev_put(rtdev); | 734 | xfs_blkdev_put(rtdev); |
735 | fs_put_dax(dax_rtdev); | 735 | fs_put_dax(dax_rtdev); |
736 | } | 736 | } |
737 | xfs_free_buftarg(mp, mp->m_ddev_targp); | 737 | xfs_free_buftarg(mp->m_ddev_targp); |
738 | fs_put_dax(dax_ddev); | 738 | fs_put_dax(dax_ddev); |
739 | } | 739 | } |
740 | 740 | ||
@@ -808,9 +808,9 @@ xfs_open_devices( | |||
808 | 808 | ||
809 | out_free_rtdev_targ: | 809 | out_free_rtdev_targ: |
810 | if (mp->m_rtdev_targp) | 810 | if (mp->m_rtdev_targp) |
811 | xfs_free_buftarg(mp, mp->m_rtdev_targp); | 811 | xfs_free_buftarg(mp->m_rtdev_targp); |
812 | out_free_ddev_targ: | 812 | out_free_ddev_targ: |
813 | xfs_free_buftarg(mp, mp->m_ddev_targp); | 813 | xfs_free_buftarg(mp->m_ddev_targp); |
814 | out_close_rtdev: | 814 | out_close_rtdev: |
815 | xfs_blkdev_put(rtdev); | 815 | xfs_blkdev_put(rtdev); |
816 | fs_put_dax(dax_rtdev); | 816 | fs_put_dax(dax_rtdev); |
@@ -1247,7 +1247,6 @@ xfs_quiesce_attr( | |||
1247 | STATIC int | 1247 | STATIC int |
1248 | xfs_test_remount_options( | 1248 | xfs_test_remount_options( |
1249 | struct super_block *sb, | 1249 | struct super_block *sb, |
1250 | struct xfs_mount *mp, | ||
1251 | char *options) | 1250 | char *options) |
1252 | { | 1251 | { |
1253 | int error = 0; | 1252 | int error = 0; |
@@ -1278,7 +1277,7 @@ xfs_fs_remount( | |||
1278 | int error; | 1277 | int error; |
1279 | 1278 | ||
1280 | /* First, check for complete junk; i.e. invalid options */ | 1279 | /* First, check for complete junk; i.e. invalid options */ |
1281 | error = xfs_test_remount_options(sb, mp, options); | 1280 | error = xfs_test_remount_options(sb, options); |
1282 | if (error) | 1281 | if (error) |
1283 | return error; | 1282 | return error; |
1284 | 1283 | ||