summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2012-04-23 14:44:18 +0000
committertrasz <trasz@FreeBSD.org>2012-04-23 14:44:18 +0000
commit23f85e5a9c7b287e052594566499fff342229e0e (patch)
tree69e33c23d9927ace834353d128db4eec164093a3 /sys/ufs
parent023bd7c6bf24588c8650d3cdc2bbe1a905ec1820 (diff)
downloadFreeBSD-src-23f85e5a9c7b287e052594566499fff342229e0e.zip
FreeBSD-src-23f85e5a9c7b287e052594566499fff342229e0e.tar.gz
Remove unused thread argument from clear_inodeps() and clear_remove().
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index dcf9622..b2bd2bd 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -773,8 +773,8 @@ struct bmsafemap_hashhead;
static void softdep_error(char *, int);
static void drain_output(struct vnode *);
static struct buf *getdirtybuf(struct buf *, struct mtx *, int);
-static void clear_remove(struct thread *);
-static void clear_inodedeps(struct thread *);
+static void clear_remove(void);
+static void clear_inodedeps(void);
static void unlinked_inodedep(struct mount *, struct inodedep *);
static void clear_unlinked_inodedep(struct inodedep *);
static struct inodedep *first_unlinked_inodedep(struct ufsmount *);
@@ -1351,12 +1351,12 @@ softdep_flush(void)
* If requested, try removing inode or removal dependencies.
*/
if (req_clear_inodedeps) {
- clear_inodedeps(td);
+ clear_inodedeps();
req_clear_inodedeps -= 1;
wakeup_one(&proc_waiting);
}
if (req_clear_remove) {
- clear_remove(td);
+ clear_remove();
req_clear_remove -= 1;
wakeup_one(&proc_waiting);
}
@@ -1499,7 +1499,6 @@ softdep_process_worklist(mp, full)
struct mount *mp;
int full;
{
- struct thread *td = curthread;
int cnt, matchcnt;
struct ufsmount *ump;
long starttime;
@@ -1523,12 +1522,12 @@ softdep_process_worklist(mp, full)
* If requested, try removing inode or removal dependencies.
*/
if (req_clear_inodedeps) {
- clear_inodedeps(td);
+ clear_inodedeps();
req_clear_inodedeps -= 1;
wakeup_one(&proc_waiting);
}
if (req_clear_remove) {
- clear_remove(td);
+ clear_remove();
req_clear_remove -= 1;
wakeup_one(&proc_waiting);
}
@@ -12785,8 +12784,7 @@ pause_timer(arg)
* reduce the number of dirrem, freefile, and freeblks dependency structures.
*/
static void
-clear_remove(td)
- struct thread *td;
+clear_remove(void)
{
struct pagedep_hashhead *pagedephd;
struct pagedep *pagedep;
@@ -12845,8 +12843,7 @@ clear_remove(td)
* the number of inodedep dependency structures.
*/
static void
-clear_inodedeps(td)
- struct thread *td;
+clear_inodedeps(void)
{
struct inodedep_hashhead *inodedephd;
struct inodedep *inodedep;
OpenPOWER on IntegriCloud