Date: Mon, 23 Apr 2012 14:44:18 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r234608 - head/sys/ufs/ffs Message-ID: <201204231444.q3NEiIu8002219@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Mon Apr 23 14:44:18 2012 New Revision: 234608 URL: http://svn.freebsd.org/changeset/base/234608 Log: Remove unused thread argument from clear_inodeps() and clear_remove(). Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/ufs/ffs/ffs_softdep.c ============================================================================== --- head/sys/ufs/ffs/ffs_softdep.c Mon Apr 23 14:10:34 2012 (r234607) +++ head/sys/ufs/ffs/ffs_softdep.c Mon Apr 23 14:44:18 2012 (r234608) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204231444.q3NEiIu8002219>