mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <djwong@kernel.org> Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
This commit is contained in:
parent
b3b5ff412a
commit
c04c51c524
1 changed files with 8 additions and 11 deletions
|
@ -918,8 +918,7 @@ xfs_refcount_adjust_extents(
|
||||||
struct xfs_btree_cur *cur,
|
struct xfs_btree_cur *cur,
|
||||||
xfs_agblock_t *agbno,
|
xfs_agblock_t *agbno,
|
||||||
xfs_extlen_t *aglen,
|
xfs_extlen_t *aglen,
|
||||||
enum xfs_refc_adjust_op adj,
|
enum xfs_refc_adjust_op adj)
|
||||||
struct xfs_owner_info *oinfo)
|
|
||||||
{
|
{
|
||||||
struct xfs_refcount_irec ext, tmp;
|
struct xfs_refcount_irec ext, tmp;
|
||||||
int error;
|
int error;
|
||||||
|
@ -977,7 +976,7 @@ xfs_refcount_adjust_extents(
|
||||||
cur->bc_ag.pag->pag_agno,
|
cur->bc_ag.pag->pag_agno,
|
||||||
tmp.rc_startblock);
|
tmp.rc_startblock);
|
||||||
xfs_free_extent_later(cur->bc_tp, fsbno,
|
xfs_free_extent_later(cur->bc_tp, fsbno,
|
||||||
tmp.rc_blockcount, oinfo);
|
tmp.rc_blockcount, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
(*agbno) += tmp.rc_blockcount;
|
(*agbno) += tmp.rc_blockcount;
|
||||||
|
@ -1021,8 +1020,8 @@ xfs_refcount_adjust_extents(
|
||||||
fsbno = XFS_AGB_TO_FSB(cur->bc_mp,
|
fsbno = XFS_AGB_TO_FSB(cur->bc_mp,
|
||||||
cur->bc_ag.pag->pag_agno,
|
cur->bc_ag.pag->pag_agno,
|
||||||
ext.rc_startblock);
|
ext.rc_startblock);
|
||||||
xfs_free_extent_later(cur->bc_tp, fsbno, ext.rc_blockcount,
|
xfs_free_extent_later(cur->bc_tp, fsbno,
|
||||||
oinfo);
|
ext.rc_blockcount, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
skip:
|
skip:
|
||||||
|
@ -1050,8 +1049,7 @@ xfs_refcount_adjust(
|
||||||
xfs_extlen_t aglen,
|
xfs_extlen_t aglen,
|
||||||
xfs_agblock_t *new_agbno,
|
xfs_agblock_t *new_agbno,
|
||||||
xfs_extlen_t *new_aglen,
|
xfs_extlen_t *new_aglen,
|
||||||
enum xfs_refc_adjust_op adj,
|
enum xfs_refc_adjust_op adj)
|
||||||
struct xfs_owner_info *oinfo)
|
|
||||||
{
|
{
|
||||||
bool shape_changed;
|
bool shape_changed;
|
||||||
int shape_changes = 0;
|
int shape_changes = 0;
|
||||||
|
@ -1094,8 +1092,7 @@ xfs_refcount_adjust(
|
||||||
cur->bc_ag.refc.shape_changes++;
|
cur->bc_ag.refc.shape_changes++;
|
||||||
|
|
||||||
/* Now that we've taken care of the ends, adjust the middle extents */
|
/* Now that we've taken care of the ends, adjust the middle extents */
|
||||||
error = xfs_refcount_adjust_extents(cur, new_agbno, new_aglen,
|
error = xfs_refcount_adjust_extents(cur, new_agbno, new_aglen, adj);
|
||||||
adj, oinfo);
|
|
||||||
if (error)
|
if (error)
|
||||||
goto out_error;
|
goto out_error;
|
||||||
|
|
||||||
|
@ -1190,12 +1187,12 @@ xfs_refcount_finish_one(
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case XFS_REFCOUNT_INCREASE:
|
case XFS_REFCOUNT_INCREASE:
|
||||||
error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno,
|
error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno,
|
||||||
new_len, XFS_REFCOUNT_ADJUST_INCREASE, NULL);
|
new_len, XFS_REFCOUNT_ADJUST_INCREASE);
|
||||||
*new_fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno);
|
*new_fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno);
|
||||||
break;
|
break;
|
||||||
case XFS_REFCOUNT_DECREASE:
|
case XFS_REFCOUNT_DECREASE:
|
||||||
error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno,
|
error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno,
|
||||||
new_len, XFS_REFCOUNT_ADJUST_DECREASE, NULL);
|
new_len, XFS_REFCOUNT_ADJUST_DECREASE);
|
||||||
*new_fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno);
|
*new_fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno);
|
||||||
break;
|
break;
|
||||||
case XFS_REFCOUNT_ALLOC_COW:
|
case XFS_REFCOUNT_ALLOC_COW:
|
||||||
|
|
Loading…
Add table
Reference in a new issue