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 Update quota in the same WAPBL transacti...
details: https://anonhg.NetBSD.org/src/rev/89423871362b
branches: bouyer-quota2
changeset: 761174:89423871362b
user: bouyer <bouyer%NetBSD.org@localhost>
date: Mon Feb 14 15:38:16 2011 +0000
description:
Update quota in the same WAPBL transaction as we write mode=0 back to inode.
diffstat:
sys/ufs/ufs/ufs_inode.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 71dcb064386a -r 89423871362b sys/ufs/ufs/ufs_inode.c
--- a/sys/ufs/ufs/ufs_inode.c Sun Feb 13 20:58:28 2011 +0000
+++ b/sys/ufs/ufs/ufs_inode.c Mon Feb 14 15:38:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_inode.c,v 1.83.4.1 2011/01/20 14:25:03 bouyer Exp $ */
+/* $NetBSD: ufs_inode.c,v 1.83.4.2 2011/02/14 15:38:16 bouyer Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_inode.c,v 1.83.4.1 2011/01/20 14:25:03 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_inode.c,v 1.83.4.2 2011/02/14 15:38:16 bouyer Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -103,9 +103,6 @@
if (error)
goto out;
logged = 1;
-#if defined(QUOTA) || defined(QUOTA2)
- (void)chkiq(ip, -1, NOCRED, 0);
-#endif
#ifdef UFS_EXTATTR
ufs_extattr_vnode_inactive(vp, curlwp);
#endif
@@ -140,6 +137,9 @@
if (!error)
error = UFS_TRUNCATE(vp, (off_t)0, 0, NOCRED);
}
+#if defined(QUOTA) || defined(QUOTA2)
+ (void)chkiq(ip, -1, NOCRED, 0);
+#endif
DIP_ASSIGN(ip, rdev, 0);
mode = ip->i_mode;
ip->i_mode = 0;
Home |
Main Index |
Thread Index |
Old Index