From 8ef35acf90b37c2fc5b567eccaa3778f363d41a0 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 31 Oct 1998 15:31:29 +0000 Subject: Use TAILQ macros for clean/dirty block list processing. Set b_xflags rather than abusing the list next pointer with a magic number. --- sys/miscfs/devfs/devfs_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/miscfs/devfs/devfs_vfsops.c') diff --git a/sys/miscfs/devfs/devfs_vfsops.c b/sys/miscfs/devfs/devfs_vfsops.c index f275170..0229dd0 100644 --- a/sys/miscfs/devfs/devfs_vfsops.c +++ b/sys/miscfs/devfs/devfs_vfsops.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devfs_vfsops.c,v 1.32 1998/09/07 13:17:00 bde Exp $ + * $Id: devfs_vfsops.c,v 1.33 1998/09/08 16:59:37 bde Exp $ * */ @@ -282,7 +282,7 @@ loop: nvp = vp->v_mntvnodes.le_next; if (VOP_ISLOCKED(vp)) continue; - if ( vp->v_dirtyblkhd.lh_first == NULL) + if (TAILQ_EMPTY(&vp->v_dirtyblkhd)) continue; if (vp->v_type == VBLK) { if (vget(vp, LK_EXCLUSIVE, p)) -- cgit v1.1