From 289631e0948833eb3a6380f4759ac632a11c273f Mon Sep 17 00:00:00 2001 From: Nikolay Sturm Date: Tue, 16 Jan 2007 21:04:32 +0000 Subject: correctly initialise unwindidx in ffs2_balloc() ok pedro --- sys/ufs/ffs/ffs_balloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/ufs') 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; -- cgit v1.2.3