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().
This commit is contained in:
Kirk McKusick 2002-06-25 01:02:28 +00:00
parent d1c02bccdc
commit a7d50c22a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98788

View File

@ -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);