summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2007-01-16 21:04:32 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2007-01-16 21:04:32 +0000
commit289631e0948833eb3a6380f4759ac632a11c273f (patch)
treeb3b168b8001299db6a095a3edc535d5b022f971b /sys
parentccbeef0dcd4cc3f0dc79bccbc1ab041ef4485279 (diff)
correctly initialise unwindidx in ffs2_balloc()
ok pedro
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_balloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c
index 0d408d3e4ce..04ddf49f2d5 100644
--- a/sys/ufs/ffs/ffs_balloc.c
+++ b/sys/ufs/ffs/ffs_balloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_balloc.c,v 1.29 2007/01/14 21:50:05 pedro Exp $ */
+/* $OpenBSD: ffs_balloc.c,v 1.30 2007/01/16 21:04:31 sturm Exp $ */
/* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */
/*
@@ -445,7 +445,7 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
vp = ITOV(ip);
fs = ip->i_fs;
- unwindidx = 1;
+ unwindidx = -1;
lbn = lblkno(fs, off);
size = blkoff(fs, off) + size;