Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/ufs/lfs pull up i_ffs_gen patch from trunk
details: https://anonhg.NetBSD.org/src/rev/14d52664dc8a
branches: netbsd-1-5
changeset: 488317:14d52664dc8a
user: perseant <perseant%NetBSD.org@localhost>
date: Wed Jun 28 22:27:22 2000 +0000
description:
pull up i_ffs_gen patch from trunk
diffstat:
sys/ufs/lfs/lfs_alloc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 043cdfea4403 -r 14d52664dc8a sys/ufs/lfs/lfs_alloc.c
--- a/sys/ufs/lfs/lfs_alloc.c Wed Jun 28 22:09:04 2000 +0000
+++ b/sys/ufs/lfs/lfs_alloc.c Wed Jun 28 22:27:22 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_alloc.c,v 1.34.2.1 2000/06/22 20:26:19 perseant Exp $ */
+/* $NetBSD: lfs_alloc.c,v 1.34.2.2 2000/06/28 22:27:22 perseant Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -117,6 +117,7 @@
ino_t new_ino;
u_long i, max;
int error;
+ int new_gen;
extern int lfs_dirvcount;
fs = VTOI(ap->a_pvp)->i_lfs;
@@ -154,6 +155,7 @@
if (ifp->if_daddr != LFS_UNUSED_DADDR)
panic("lfs_ialloc: inuse inode %d on the free list", new_ino);
fs->lfs_free = ifp->if_nextfree;
+ new_gen = ifp->if_version; /* version was updated by vfree */
#ifdef LFS_DEBUG_NEXTFREE
ifp->if_nextfree = 0;
VOP_BWRITE(bp);
@@ -217,7 +219,7 @@
ip->i_din.ffs_din.di_inumber = new_ino;
/* Set a new generation number for this inode. */
- ip->i_ffs_gen++;
+ ip->i_ffs_gen = new_gen;
/* Insert into the inode hash table. */
ufs_ihashins(ip);
Home |
Main Index |
Thread Index |
Old Index