Skip to content

Commit c04c51c

Browse files
author
Darrick J. Wong
committed
xfs: remove unused parameter from refcount code
The owner info parameter is always NULL, so get rid of the parameter. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Chandan Babu R <[email protected]>
1 parent b3b5ff4 commit c04c51c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

fs/xfs/libxfs/xfs_refcount.c

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,7 @@ xfs_refcount_adjust_extents(
918918
struct xfs_btree_cur *cur,
919919
xfs_agblock_t *agbno,
920920
xfs_extlen_t *aglen,
921-
enum xfs_refc_adjust_op adj,
922-
struct xfs_owner_info *oinfo)
921+
enum xfs_refc_adjust_op adj)
923922
{
924923
struct xfs_refcount_irec ext, tmp;
925924
int error;
@@ -977,7 +976,7 @@ xfs_refcount_adjust_extents(
977976
cur->bc_ag.pag->pag_agno,
978977
tmp.rc_startblock);
979978
xfs_free_extent_later(cur->bc_tp, fsbno,
980-
tmp.rc_blockcount, oinfo);
979+
tmp.rc_blockcount, NULL);
981980
}
982981

983982
(*agbno) += tmp.rc_blockcount;
@@ -1021,8 +1020,8 @@ xfs_refcount_adjust_extents(
10211020
fsbno = XFS_AGB_TO_FSB(cur->bc_mp,
10221021
cur->bc_ag.pag->pag_agno,
10231022
ext.rc_startblock);
1024-
xfs_free_extent_later(cur->bc_tp, fsbno, ext.rc_blockcount,
1025-
oinfo);
1023+
xfs_free_extent_later(cur->bc_tp, fsbno,
1024+
ext.rc_blockcount, NULL);
10261025
}
10271026

10281027
skip:
@@ -1050,8 +1049,7 @@ xfs_refcount_adjust(
10501049
xfs_extlen_t aglen,
10511050
xfs_agblock_t *new_agbno,
10521051
xfs_extlen_t *new_aglen,
1053-
enum xfs_refc_adjust_op adj,
1054-
struct xfs_owner_info *oinfo)
1052+
enum xfs_refc_adjust_op adj)
10551053
{
10561054
bool shape_changed;
10571055
int shape_changes = 0;
@@ -1094,8 +1092,7 @@ xfs_refcount_adjust(
10941092
cur->bc_ag.refc.shape_changes++;
10951093

10961094
/* Now that we've taken care of the ends, adjust the middle extents */
1097-
error = xfs_refcount_adjust_extents(cur, new_agbno, new_aglen,
1098-
adj, oinfo);
1095+
error = xfs_refcount_adjust_extents(cur, new_agbno, new_aglen, adj);
10991096
if (error)
11001097
goto out_error;
11011098

@@ -1190,12 +1187,12 @@ xfs_refcount_finish_one(
11901187
switch (type) {
11911188
case XFS_REFCOUNT_INCREASE:
11921189
error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno,
1193-
new_len, XFS_REFCOUNT_ADJUST_INCREASE, NULL);
1190+
new_len, XFS_REFCOUNT_ADJUST_INCREASE);
11941191
*new_fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno);
11951192
break;
11961193
case XFS_REFCOUNT_DECREASE:
11971194
error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno,
1198-
new_len, XFS_REFCOUNT_ADJUST_DECREASE, NULL);
1195+
new_len, XFS_REFCOUNT_ADJUST_DECREASE);
11991196
*new_fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno);
12001197
break;
12011198
case XFS_REFCOUNT_ALLOC_COW:

0 commit comments

Comments
 (0)