summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2007-01-15 11:18:18 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2007-01-15 11:18:18 +0000
commit8b088c5d6ae231ec296a24fa50d936a132969ce1 (patch)
tree46037efc98a3a3be18e8208829c21f6c737d8167 /sys/ufs
parentcff03307c3f5ad94810e5374a1af0d63151b5767 (diff)
Fix splbio() in initiate_write_inodeblock_ufs2()
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index e0222ba3b7a..7c3bced9da5 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_softdep.c,v 1.80 2007/01/15 11:05:53 pedro Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.81 2007/01/15 11:18:17 pedro Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -3612,7 +3612,6 @@ initiate_write_inodeblock_ufs2(inodedep, bp)
inodedep->id_savedsize = dp->di_size;
if (TAILQ_FIRST(&inodedep->id_inoupdt) == NULL)
return;
- ACQUIRE_LOCK(&lk);
#ifdef notyet
inodedep->id_savedextsize = dp->di_extsize;
@@ -3622,7 +3621,6 @@ initiate_write_inodeblock_ufs2(inodedep, bp)
/*
* Set the ext data dependencies to busy.
*/
- ACQUIRE_LOCK(&lk);
for (deplist = 0, adp = TAILQ_FIRST(&inodedep->id_extupdt); adp;
adp = TAILQ_NEXT(adp, ad_next)) {
#ifdef DIAGNOSTIC
@@ -3756,7 +3754,6 @@ initiate_write_inodeblock_ufs2(inodedep, bp)
#endif /* DIAGNOSTIC */
dp->di_ib[i] = 0;
}
- FREE_LOCK(&lk);
return;
}
/*
@@ -3785,7 +3782,6 @@ initiate_write_inodeblock_ufs2(inodedep, bp)
*/
for (; adp; adp = TAILQ_NEXT(adp, ad_next))
dp->di_ib[adp->ad_lbn - NDADDR] = 0;
- FREE_LOCK(&lk);
}
#endif /* UFS2 */