summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_inode.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-10-31 15:31:29 +0000
committerpeter <peter@FreeBSD.org>1998-10-31 15:31:29 +0000
commit8ef35acf90b37c2fc5b567eccaa3778f363d41a0 (patch)
tree1f2cdd6ce7e2fb30893bb1cea70630fd7c6edb14 /sys/gnu/ext2fs/ext2_inode.c
parentb7f6f55ecf024f827ab5fb630a1826c0133aab0a (diff)
downloadFreeBSD-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/gnu/ext2fs/ext2_inode.c')
-rw-r--r--sys/gnu/ext2fs/ext2_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_inode.c b/sys/gnu/ext2fs/ext2_inode.c
index 933d031..02f4a62 100644
--- a/sys/gnu/ext2fs/ext2_inode.c
+++ b/sys/gnu/ext2fs/ext2_inode.c
@@ -349,8 +349,8 @@ done:
for (i = 0; i < NDADDR; i++)
if (newblks[i] != oip->i_db[i])
panic("itrunc2");
- if (length == 0 &&
- (ovp->v_dirtyblkhd.lh_first || ovp->v_cleanblkhd.lh_first))
+ if (length == 0 && (!TAILQ_EMPTY(&ovp->v_dirtyblkhd) ||
+ !TAILQ_EMPTY(&ovp->v_cleanblkhd)))
panic("itrunc3");
#endif /* DIAGNOSTIC */
/*
OpenPOWER on IntegriCloud