diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-05-07 23:48:56 -0400 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-05-07 23:48:56 -0400 |
commit | e9ed9d2240c71014a84043095af4465ffce61367 (patch) | |
tree | 0db4de9938846d2cb68a2d49944303288cc291e0 /fs | |
parent | ef497f8a1eafe0447f0473940ff2e0f6c8519a14 (diff) |
[XFS] remove more misc. unused args
Patch provided by Eric Sandeen.
SGI-PV: 961695
SGI-Modid: xfs-linux-melb:xfs-kern:28205a
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 10 | ||||
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 5 |
3 files changed, 8 insertions, 15 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 05d43d112843..50f2213589f8 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -130,7 +130,6 @@ STATIC int /* error */ | |||
130 | xfs_bmap_add_extent_hole_delay( | 130 | xfs_bmap_add_extent_hole_delay( |
131 | xfs_inode_t *ip, /* incore inode pointer */ | 131 | xfs_inode_t *ip, /* incore inode pointer */ |
132 | xfs_extnum_t idx, /* extent number to update/insert */ | 132 | xfs_extnum_t idx, /* extent number to update/insert */ |
133 | xfs_btree_cur_t *cur, /* if null, not a btree */ | ||
134 | xfs_bmbt_irec_t *new, /* new data to add to file extents */ | 133 | xfs_bmbt_irec_t *new, /* new data to add to file extents */ |
135 | int *logflagsp,/* inode logging flags */ | 134 | int *logflagsp,/* inode logging flags */ |
136 | xfs_extdelta_t *delta, /* Change made to incore extents */ | 135 | xfs_extdelta_t *delta, /* Change made to incore extents */ |
@@ -399,7 +398,6 @@ xfs_bmap_count_leaves( | |||
399 | 398 | ||
400 | STATIC int | 399 | STATIC int |
401 | xfs_bmap_disk_count_leaves( | 400 | xfs_bmap_disk_count_leaves( |
402 | xfs_ifork_t *ifp, | ||
403 | xfs_extnum_t idx, | 401 | xfs_extnum_t idx, |
404 | xfs_bmbt_block_t *block, | 402 | xfs_bmbt_block_t *block, |
405 | int numrecs, | 403 | int numrecs, |
@@ -580,7 +578,7 @@ xfs_bmap_add_extent( | |||
580 | if (cur) | 578 | if (cur) |
581 | ASSERT((cur->bc_private.b.flags & | 579 | ASSERT((cur->bc_private.b.flags & |
582 | XFS_BTCUR_BPRV_WASDEL) == 0); | 580 | XFS_BTCUR_BPRV_WASDEL) == 0); |
583 | if ((error = xfs_bmap_add_extent_hole_delay(ip, idx, cur, new, | 581 | if ((error = xfs_bmap_add_extent_hole_delay(ip, idx, new, |
584 | &logflags, delta, rsvd))) | 582 | &logflags, delta, rsvd))) |
585 | goto done; | 583 | goto done; |
586 | } | 584 | } |
@@ -1841,7 +1839,6 @@ STATIC int /* error */ | |||
1841 | xfs_bmap_add_extent_hole_delay( | 1839 | xfs_bmap_add_extent_hole_delay( |
1842 | xfs_inode_t *ip, /* incore inode pointer */ | 1840 | xfs_inode_t *ip, /* incore inode pointer */ |
1843 | xfs_extnum_t idx, /* extent number to update/insert */ | 1841 | xfs_extnum_t idx, /* extent number to update/insert */ |
1844 | xfs_btree_cur_t *cur, /* if null, not a btree */ | ||
1845 | xfs_bmbt_irec_t *new, /* new data to add to file extents */ | 1842 | xfs_bmbt_irec_t *new, /* new data to add to file extents */ |
1846 | int *logflagsp, /* inode logging flags */ | 1843 | int *logflagsp, /* inode logging flags */ |
1847 | xfs_extdelta_t *delta, /* Change made to incore extents */ | 1844 | xfs_extdelta_t *delta, /* Change made to incore extents */ |
@@ -6425,8 +6422,8 @@ xfs_bmap_count_tree( | |||
6425 | for (;;) { | 6422 | for (;;) { |
6426 | nextbno = be64_to_cpu(block->bb_rightsib); | 6423 | nextbno = be64_to_cpu(block->bb_rightsib); |
6427 | numrecs = be16_to_cpu(block->bb_numrecs); | 6424 | numrecs = be16_to_cpu(block->bb_numrecs); |
6428 | if (unlikely(xfs_bmap_disk_count_leaves(ifp, | 6425 | if (unlikely(xfs_bmap_disk_count_leaves(0, |
6429 | 0, block, numrecs, count) < 0)) { | 6426 | block, numrecs, count) < 0)) { |
6430 | xfs_trans_brelse(tp, bp); | 6427 | xfs_trans_brelse(tp, bp); |
6431 | XFS_ERROR_REPORT("xfs_bmap_count_tree(2)", | 6428 | XFS_ERROR_REPORT("xfs_bmap_count_tree(2)", |
6432 | XFS_ERRLEVEL_LOW, mp); | 6429 | XFS_ERRLEVEL_LOW, mp); |
@@ -6472,7 +6469,6 @@ xfs_bmap_count_leaves( | |||
6472 | */ | 6469 | */ |
6473 | int | 6470 | int |
6474 | xfs_bmap_disk_count_leaves( | 6471 | xfs_bmap_disk_count_leaves( |
6475 | xfs_ifork_t *ifp, | ||
6476 | xfs_extnum_t idx, | 6472 | xfs_extnum_t idx, |
6477 | xfs_bmbt_block_t *block, | 6473 | xfs_bmbt_block_t *block, |
6478 | int numrecs, | 6474 | int numrecs, |
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index fcb33438c374..1326e66e34ac 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -1509,7 +1509,6 @@ xlog_recover_insert_item_frontq( | |||
1509 | 1509 | ||
1510 | STATIC int | 1510 | STATIC int |
1511 | xlog_recover_reorder_trans( | 1511 | xlog_recover_reorder_trans( |
1512 | xlog_t *log, | ||
1513 | xlog_recover_t *trans) | 1512 | xlog_recover_t *trans) |
1514 | { | 1513 | { |
1515 | xlog_recover_item_t *first_item, *itemq, *itemq_next; | 1514 | xlog_recover_item_t *first_item, *itemq, *itemq_next; |
@@ -1867,7 +1866,6 @@ xlog_recover_do_inode_buffer( | |||
1867 | /*ARGSUSED*/ | 1866 | /*ARGSUSED*/ |
1868 | STATIC void | 1867 | STATIC void |
1869 | xlog_recover_do_reg_buffer( | 1868 | xlog_recover_do_reg_buffer( |
1870 | xfs_mount_t *mp, | ||
1871 | xlog_recover_item_t *item, | 1869 | xlog_recover_item_t *item, |
1872 | xfs_buf_t *bp, | 1870 | xfs_buf_t *bp, |
1873 | xfs_buf_log_format_t *buf_f) | 1871 | xfs_buf_log_format_t *buf_f) |
@@ -2083,7 +2081,7 @@ xlog_recover_do_dquot_buffer( | |||
2083 | if (log->l_quotaoffs_flag & type) | 2081 | if (log->l_quotaoffs_flag & type) |
2084 | return; | 2082 | return; |
2085 | 2083 | ||
2086 | xlog_recover_do_reg_buffer(mp, item, bp, buf_f); | 2084 | xlog_recover_do_reg_buffer(item, bp, buf_f); |
2087 | } | 2085 | } |
2088 | 2086 | ||
2089 | /* | 2087 | /* |
@@ -2184,7 +2182,7 @@ xlog_recover_do_buffer_trans( | |||
2184 | (XFS_BLI_UDQUOT_BUF|XFS_BLI_PDQUOT_BUF|XFS_BLI_GDQUOT_BUF)) { | 2182 | (XFS_BLI_UDQUOT_BUF|XFS_BLI_PDQUOT_BUF|XFS_BLI_GDQUOT_BUF)) { |
2185 | xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f); | 2183 | xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f); |
2186 | } else { | 2184 | } else { |
2187 | xlog_recover_do_reg_buffer(mp, item, bp, buf_f); | 2185 | xlog_recover_do_reg_buffer(item, bp, buf_f); |
2188 | } | 2186 | } |
2189 | if (error) | 2187 | if (error) |
2190 | return XFS_ERROR(error); | 2188 | return XFS_ERROR(error); |
@@ -2765,7 +2763,7 @@ xlog_recover_do_trans( | |||
2765 | int error = 0; | 2763 | int error = 0; |
2766 | xlog_recover_item_t *item, *first_item; | 2764 | xlog_recover_item_t *item, *first_item; |
2767 | 2765 | ||
2768 | if ((error = xlog_recover_reorder_trans(log, trans))) | 2766 | if ((error = xlog_recover_reorder_trans(trans))) |
2769 | return error; | 2767 | return error; |
2770 | first_item = item = trans->r_itemq; | 2768 | first_item = item = trans->r_itemq; |
2771 | do { | 2769 | do { |
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 6202a9318a76..5ed349eccb00 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -2120,7 +2120,6 @@ int xfs_rm_attempts; | |||
2120 | STATIC int | 2120 | STATIC int |
2121 | xfs_lock_dir_and_entry( | 2121 | xfs_lock_dir_and_entry( |
2122 | xfs_inode_t *dp, | 2122 | xfs_inode_t *dp, |
2123 | bhv_vname_t *dentry, | ||
2124 | xfs_inode_t *ip) /* inode of entry 'name' */ | 2123 | xfs_inode_t *ip) /* inode of entry 'name' */ |
2125 | { | 2124 | { |
2126 | int attempts; | 2125 | int attempts; |
@@ -2439,7 +2438,7 @@ xfs_remove( | |||
2439 | return error; | 2438 | return error; |
2440 | } | 2439 | } |
2441 | 2440 | ||
2442 | error = xfs_lock_dir_and_entry(dp, dentry, ip); | 2441 | error = xfs_lock_dir_and_entry(dp, ip); |
2443 | if (error) { | 2442 | if (error) { |
2444 | REMOVE_DEBUG_TRACE(__LINE__); | 2443 | REMOVE_DEBUG_TRACE(__LINE__); |
2445 | xfs_trans_cancel(tp, cancel_flags); | 2444 | xfs_trans_cancel(tp, cancel_flags); |
@@ -3095,7 +3094,7 @@ xfs_rmdir( | |||
3095 | * that the directory entry for the child directory inode has | 3094 | * that the directory entry for the child directory inode has |
3096 | * not changed while we were obtaining a log reservation. | 3095 | * not changed while we were obtaining a log reservation. |
3097 | */ | 3096 | */ |
3098 | error = xfs_lock_dir_and_entry(dp, dentry, cdp); | 3097 | error = xfs_lock_dir_and_entry(dp, cdp); |
3099 | if (error) { | 3098 | if (error) { |
3100 | xfs_trans_cancel(tp, cancel_flags); | 3099 | xfs_trans_cancel(tp, cancel_flags); |
3101 | IRELE(cdp); | 3100 | IRELE(cdp); |