summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2002-11-20 05:14:16 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2002-11-20 05:14:16 +0000
commit3374bb5ad66989732b345c0a1062077aa17b29af (patch)
tree8325a4c034f34422b65c31858fa58a00c76e4130
parenta5a82fa863a9963cf653c5b68492320036de217a (diff)
Notes
-rw-r--r--sys/ufs/ffs/ffs_softdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 422cabca74be..5a185e538882 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -3935,6 +3935,12 @@ softdep_disk_write_complete(bp)
struct inodedep *inodedep;
struct bmsafemap *bmsafemap;
+ /*
+ * If an error occurred while doing the write, then the data
+ * has not hit the disk and the dependencies cannot be unrolled.
+ */
+ if ((bp->b_ioflags & BIO_ERROR) != 0 && (bp->b_flags & B_INVAL) == 0)
+ return;
#ifdef DEBUG
if (lk.lkt_held != NOHOLDER)
panic("softdep_disk_write_complete: lock is held");