diff options
| author | Kirk McKusick <mckusick@FreeBSD.org> | 2002-11-20 05:14:16 +0000 |
|---|---|---|
| committer | Kirk McKusick <mckusick@FreeBSD.org> | 2002-11-20 05:14:16 +0000 |
| commit | 3374bb5ad66989732b345c0a1062077aa17b29af (patch) | |
| tree | 8325a4c034f34422b65c31858fa58a00c76e4130 | |
| parent | a5a82fa863a9963cf653c5b68492320036de217a (diff) | |
Notes
| -rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 6 |
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"); |
