Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-quota2]: src/sys/ufs/ufs Make sure to not try to close the quota ...
details: https://anonhg.NetBSD.org/src/rev/cca22a2a586a
branches: bouyer-quota2
changeset: 761153:cca22a2a586a
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Feb 09 21:17:17 2011 +0000
description:
Make sure to not try to close the quota vnodes twice.
diffstat:
sys/ufs/ufs/ufs_quota2.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r b8400f6862fc -r cca22a2a586a sys/ufs/ufs/ufs_quota2.c
--- a/sys/ufs/ufs/ufs_quota2.c Wed Feb 09 20:53:10 2011 +0000
+++ b/sys/ufs/ufs/ufs_quota2.c Wed Feb 09 21:17:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_quota2.c,v 1.1.2.11 2011/02/09 11:18:30 bouyer Exp $ */
+/* $NetBSD: ufs_quota2.c,v 1.1.2.12 2011/02/09 21:17:17 bouyer Exp $ */
/*-
* Copyright (c) 2010 Manuel Bouyer
* All rights reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota2.c,v 1.1.2.11 2011/02/09 11:18:30 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota2.c,v 1.1.2.12 2011/02/09 21:17:17 bouyer Exp $");
#include <sys/buf.h>
#include <sys/param.h>
@@ -213,7 +213,7 @@
return 0;
for (i = 0; i < MAXQUOTAS; i++) {
- if (ump->um_quotas[i]) {
+ if (ump->um_quotas[i] != NULLVP) {
error = vn_close(ump->um_quotas[i], FREAD|FWRITE,
ump->um_cred[i]);
if (error) {
@@ -222,6 +222,7 @@
return error;
}
}
+ ump->um_quotas[i] = NULLVP;
}
return 0;
}
Home |
Main Index |
Thread Index |
Old Index