summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2007-01-14 21:50:06 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2007-01-14 21:50:06 +0000
commit135e88b8573d67ac000db57dd8da4dfd5ad42273 (patch)
treed99d32d63b46ace07848fa35cfdb2819692cd758 /sys
parent053d4fb282278bce5ea6eb82fea0d3cabeb9477a (diff)
Fix growing of direct blocks in ffs2_balloc()
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_balloc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c
index ef15fe73c03..0d408d3e4ce 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.28 2007/01/12 14:33:01 pedro Exp $ */
+/* $OpenBSD: ffs_balloc.c,v 1.29 2007/01/14 21:50:05 pedro Exp $ */
/* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */
/*
@@ -584,13 +584,12 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
if (DOINGSOFTDEP(vp))
softdep_setup_allocdirect(ip, lbn, newb, 0,
nsize, 0, bpp ? *bpp : NULL);
-
- ip->i_ffs2_db[lbn] = newb;
- ip->i_flag |= IN_CHANGE | IN_UPDATE;
-
- return (0);
}
+ ip->i_ffs2_db[lbn] = newb;
+ ip->i_flag |= IN_CHANGE | IN_UPDATE;
+
+ return (0);
}
/*