diff options
author | peter <peter@FreeBSD.org> | 1998-10-31 15:33:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-10-31 15:33:32 +0000 |
commit | 8ad638ff9e8e08a77237a50cbc3c04fff97cb268 (patch) | |
tree | 505a3f9bd891bf2e42e3417ed4c7b3f1596964dc /contrib/sys | |
parent | 8ef35acf90b37c2fc5b567eccaa3778f363d41a0 (diff) | |
download | FreeBSD-src-8ad638ff9e8e08a77237a50cbc3c04fff97cb268.zip FreeBSD-src-8ad638ff9e8e08a77237a50cbc3c04fff97cb268.tar.gz |
Change dirty block list handling to use TAILQ macros.
Diffstat (limited to 'contrib/sys')
-rw-r--r-- | contrib/sys/softupdates/ffs_softdep.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/sys/softupdates/ffs_softdep.c b/contrib/sys/softupdates/ffs_softdep.c index 3b4a167..078ad78 100644 --- a/contrib/sys/softupdates/ffs_softdep.c +++ b/contrib/sys/softupdates/ffs_softdep.c @@ -54,7 +54,7 @@ * SUCH DAMAGE. * * from: @(#)ffs_softdep.c 9.28 (McKusick) 8/8/98 - * $Id: ffs_softdep.c,v 1.15 1998/10/03 19:17:11 nate Exp $ + * $Id: ffs_softdep.c,v 1.16 1998/10/28 10:37:54 jkh Exp $ */ /* @@ -1664,8 +1664,8 @@ softdep_setup_freeblocks(ip, length) tsleep((caddr_t)&vp->v_numoutput, PRIBIO + 1, "sdsetf", 0); ACQUIRE_LOCK_INTERLOCKED(&lk); } - while (getdirtybuf(&LIST_FIRST(&vp->v_dirtyblkhd), MNT_WAIT)) { - bp = LIST_FIRST(&vp->v_dirtyblkhd); + while (getdirtybuf(&TAILQ_FIRST(&vp->v_dirtyblkhd), MNT_WAIT)) { + bp = TAILQ_FIRST(&vp->v_dirtyblkhd); (void) inodedep_lookup(fs, ip->i_number, 0, &inodedep); deallocate_dependencies(bp, inodedep); bp->b_flags |= B_INVAL | B_NOCACHE; @@ -3740,7 +3740,7 @@ softdep_sync_metadata(ap) */ waitfor = MNT_NOWAIT; top: - if (getdirtybuf(&LIST_FIRST(&vp->v_dirtyblkhd), MNT_WAIT) == 0) { + if (getdirtybuf(&TAILQ_FIRST(&vp->v_dirtyblkhd), MNT_WAIT) == 0) { while (vp->v_numoutput) { vp->v_flag |= VBWAIT; FREE_LOCK_INTERLOCKED(&lk); @@ -3751,7 +3751,7 @@ top: FREE_LOCK(&lk); return (0); } - bp = LIST_FIRST(&vp->v_dirtyblkhd); + bp = TAILQ_FIRST(&vp->v_dirtyblkhd); loop: /* * As we hold the buffer locked, none of its dependencies @@ -3850,8 +3850,8 @@ loop: /* NOTREACHED */ } } - (void) getdirtybuf(&LIST_NEXT(bp, b_vnbufs), MNT_WAIT); - nbp = LIST_NEXT(bp, b_vnbufs); + (void) getdirtybuf(&TAILQ_NEXT(bp, b_vnbufs), MNT_WAIT); + nbp = TAILQ_NEXT(bp, b_vnbufs); FREE_LOCK(&lk); bawrite(bp); ACQUIRE_LOCK(&lk); @@ -3887,7 +3887,7 @@ loop: * then we are done. For certain directories and block * devices, we may need to do further work. */ - if (LIST_FIRST(&vp->v_dirtyblkhd) == NULL) { + if (TAILQ_FIRST(&vp->v_dirtyblkhd) == NULL) { FREE_LOCK(&lk); return (0); } |