diff options
author | peter <peter@FreeBSD.org> | 1998-10-31 15:31:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-10-31 15:31:29 +0000 |
commit | 8ef35acf90b37c2fc5b567eccaa3778f363d41a0 (patch) | |
tree | 1f2cdd6ce7e2fb30893bb1cea70630fd7c6edb14 /sys/ufs/ffs/ffs_inode.c | |
parent | b7f6f55ecf024f827ab5fb630a1826c0133aab0a (diff) | |
download | FreeBSD-src-8ef35acf90b37c2fc5b567eccaa3778f363d41a0.zip FreeBSD-src-8ef35acf90b37c2fc5b567eccaa3778f363d41a0.tar.gz |
Use TAILQ macros for clean/dirty block list processing. Set b_xflags
rather than abusing the list next pointer with a magic number.
Diffstat (limited to 'sys/ufs/ffs/ffs_inode.c')
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 353bcd8..5a75ed3 100644 --- a/sys/ufs/ffs/ffs_inode.c +++ b/sys/ufs/ffs/ffs_inode.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_inode.c 8.13 (Berkeley) 4/21/95 - * $Id: ffs_inode.c,v 1.47 1998/09/15 14:45:28 luoqi Exp $ + * $Id: ffs_inode.c,v 1.48 1998/10/25 17:44:57 phk Exp $ */ #include "opt_quota.h" @@ -387,7 +387,8 @@ done: if (newblks[i] != oip->i_db[i]) panic("ffs_truncate2"); if (length == 0 && - (ovp->v_dirtyblkhd.lh_first || ovp->v_cleanblkhd.lh_first)) + (!TAILQ_EMPTY(&ovp->v_dirtyblkhd) || + !TAILQ_EMPTY(&ovp->v_cleanblkhd))) panic("ffs_truncate3"); #endif /* DIAGNOSTIC */ /* |