[XFS] Remove unused argument to xfs_bmap_finish

The firstblock argument to xfs_bmap_finish is not used by that function.
Remove it and cleanup the code a bit.

Patch provided by Eric Sandeen.

SGI-PV: 960196
SGI-Modid: xfs-linux-melb:xfs-kern:28034a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:
Eric Sandeen 2007-02-10 18:37:16 +11:00 committed by Tim Shimmin
parent 39058a0e12
commit f7c99b6fc7
9 changed files with 25 additions and 35 deletions

View file

@ -1381,7 +1381,7 @@ xfs_inactive_symlink_rmt(
/*
* Commit the first transaction. This logs the EFI and the inode.
*/
if ((error = xfs_bmap_finish(&tp, &free_list, first_block, &committed)))
if ((error = xfs_bmap_finish(&tp, &free_list, &committed)))
goto error1;
/*
* The transaction must have been committed, since there were
@ -1790,8 +1790,7 @@ xfs_inactive(
* Just ignore errors at this point. There is
* nothing we can do except to try to keep going.
*/
(void) xfs_bmap_finish(&tp, &free_list, first_block,
&committed);
(void) xfs_bmap_finish(&tp, &free_list, &committed);
(void) xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES, NULL);
}
/*
@ -2022,7 +2021,7 @@ xfs_create(
IHOLD(ip);
vp = XFS_ITOV(ip);
error = xfs_bmap_finish(&tp, &free_list, first_block, &committed);
error = xfs_bmap_finish(&tp, &free_list, &committed);
if (error) {
xfs_bmap_cancel(&free_list);
goto abort_rele;
@ -2507,7 +2506,7 @@ xfs_remove(
xfs_trans_set_sync(tp);
}
error = xfs_bmap_finish(&tp, &free_list, first_block, &committed);
error = xfs_bmap_finish(&tp, &free_list, &committed);
if (error) {
REMOVE_DEBUG_TRACE(__LINE__);
goto error_rele;
@ -2715,7 +2714,7 @@ xfs_link(
xfs_trans_set_sync(tp);
}
error = xfs_bmap_finish (&tp, &free_list, first_block, &committed);
error = xfs_bmap_finish (&tp, &free_list, &committed);
if (error) {
xfs_bmap_cancel(&free_list);
goto abort_return;
@ -2932,7 +2931,7 @@ xfs_mkdir(
xfs_trans_set_sync(tp);
}
error = xfs_bmap_finish(&tp, &free_list, first_block, &committed);
error = xfs_bmap_finish(&tp, &free_list, &committed);
if (error) {
IRELE(cdp);
goto error2;
@ -3183,7 +3182,7 @@ xfs_rmdir(
xfs_trans_set_sync(tp);
}
error = xfs_bmap_finish (&tp, &free_list, first_block, &committed);
error = xfs_bmap_finish (&tp, &free_list, &committed);
if (error) {
xfs_bmap_cancel(&free_list);
xfs_trans_cancel(tp, (XFS_TRANS_RELEASE_LOG_RES |
@ -3533,7 +3532,7 @@ xfs_symlink(
*/
IHOLD(ip);
error = xfs_bmap_finish(&tp, &free_list, first_block, &committed);
error = xfs_bmap_finish(&tp, &free_list, &committed);
if (error) {
goto error2;
}
@ -4145,7 +4144,7 @@ retry:
/*
* Complete the transaction
*/
error = xfs_bmap_finish(&tp, &free_list, firstfsb, &committed);
error = xfs_bmap_finish(&tp, &free_list, &committed);
if (error) {
goto error0;
}
@ -4452,7 +4451,7 @@ xfs_free_file_space(
/*
* complete the transaction
*/
error = xfs_bmap_finish(&tp, &free_list, firstfsb, &committed);
error = xfs_bmap_finish(&tp, &free_list, &committed);
if (error) {
goto error0;
}