Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/v7fs Existing inode don't recycle. rump works.
details: https://anonhg.NetBSD.org/src/rev/5844d6805695
branches: trunk
changeset: 767611:5844d6805695
user: uch <uch%NetBSD.org@localhost>
date: Sun Jul 24 12:31:33 2011 +0000
description:
Existing inode don't recycle. rump works.
diffstat:
sys/fs/v7fs/v7fs_vnops.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (46 lines):
diff -r e2c46bbe0502 -r 5844d6805695 sys/fs/v7fs/v7fs_vnops.c
--- a/sys/fs/v7fs/v7fs_vnops.c Sun Jul 24 09:40:10 2011 +0000
+++ b/sys/fs/v7fs/v7fs_vnops.c Sun Jul 24 12:31:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: v7fs_vnops.c,v 1.4 2011/07/16 12:35:40 uch Exp $ */
+/* $NetBSD: v7fs_vnops.c,v 1.5 2011/07/24 12:31:33 uch Exp $ */
/*-
* Copyright (c) 2004, 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.4 2011/07/16 12:35:40 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.5 2011/07/24 12:31:33 uch Exp $");
#if defined _KERNEL_OPT
#include "opt_v7fs.h"
#endif
@@ -954,14 +954,14 @@
struct v7fs_node *v7node = vp->v_data;
struct v7fs_inode *inode = &v7node->inode;
- DPRINTF("%p\n", vp);
-
+ DPRINTF("%p #%d\n", vp, inode->inode_number);
if (v7fs_inode_allocated(inode)) {
v7fs_update(vp, 0, 0, UPDATE_WAIT);
+ *a->a_recycle = false;
+ } else {
+ *a->a_recycle = true;
}
- *a->a_recycle = true;
-
VOP_UNLOCK(vp);
return 0;
@@ -978,7 +978,7 @@
struct vnode *vp = a->a_vp;
struct v7fs_node *v7node = vp->v_data;
- DPRINTF("%p\n", vp);
+ DPRINTF("%p #%d\n", vp, v7node->inode.inode_number);
mutex_enter(&mntvnode_lock);
LIST_REMOVE(v7node, link);
mutex_exit(&mntvnode_lock);
Home |
Main Index |
Thread Index |
Old Index