Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Fix unmount returnign EBUSY if an attribute was ...
details: https://anonhg.NetBSD.org/src/rev/6e680ef835f1
branches: trunk
changeset: 781496:6e680ef835f1
user: manu <manu%NetBSD.org@localhost>
date: Mon Sep 10 14:00:15 2012 +0000
description:
Fix unmount returnign EBUSY if an attribute was autocreated: we hold
a useless reference that we never gave back
diffstat:
sys/ufs/ufs/ufs_extattr.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (31 lines):
diff -r 1fe5b2b4fb05 -r 6e680ef835f1 sys/ufs/ufs/ufs_extattr.c
--- a/sys/ufs/ufs/ufs_extattr.c Mon Sep 10 13:56:18 2012 +0000
+++ b/sys/ufs/ufs/ufs_extattr.c Mon Sep 10 14:00:15 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_extattr.c,v 1.39 2012/05/01 07:48:25 manu Exp $ */
+/* $NetBSD: ufs_extattr.c,v 1.40 2012/09/10 14:00:15 manu Exp $ */
/*-
* Copyright (c) 1999-2002 Robert N. M. Watson
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_extattr.c,v 1.39 2012/05/01 07:48:25 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_extattr.c,v 1.40 2012/09/10 14:00:15 manu Exp $");
#ifdef _KERNEL_OPT
#include "opt_ffs.h"
@@ -309,12 +309,6 @@
}
/*
- * ufs_extattr_enable_with_open increases the vnode reference
- * count. Not sure why, but do the same here.
- */
- vref(vp);
-
- /*
* Now enable attribute.
*/
error = ufs_extattr_enable(ump,attrnamespace, attrname, backing_vp, l);
Home |
Main Index |
Thread Index |
Old Index