From a7d50c22a6b36ebb6fe3296eda7bd63048ce2ca1 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Tue, 25 Jun 2002 01:02:28 +0000 Subject: [PATCH] Force the quota update to be done when an inode is released in ufs_inactive. This avoid a panic when checking a NULL credential in suser_cred(). --- sys/ufs/ufs/ufs_inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ufs/ufs/ufs_inode.c b/sys/ufs/ufs/ufs_inode.c index b9bbe9e992b7..c9ac36259dd4 100644 --- a/sys/ufs/ufs/ufs_inode.c +++ b/sys/ufs/ufs/ufs_inode.c @@ -90,7 +90,7 @@ ufs_inactive(ap) (void) vn_write_suspend_wait(vp, NULL, V_WAIT); #ifdef QUOTA if (!getinoquota(ip)) - (void)chkiq(ip, -1, NOCRED, 0); + (void)chkiq(ip, -1, NOCRED, FORCE); #endif #ifdef UFS_EXTATTR ufs_extattr_vnode_inactive(ap->a_vp, ap->a_td);