diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-06-25 01:02:28 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-06-25 01:02:28 +0000 |
commit | ea2f279985fab9e78b84a3a3e6ded69f58ec0df7 (patch) | |
tree | 75e0c1d838a3472c352afe712f0419608c1e7cdb /sys | |
parent | be1828addc30ba2c669f5f07acb2529b272fd6db (diff) | |
download | FreeBSD-src-ea2f279985fab9e78b84a3a3e6ded69f58ec0df7.zip FreeBSD-src-ea2f279985fab9e78b84a3a3e6ded69f58ec0df7.tar.gz |
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().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/ufs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_inode.c b/sys/ufs/ufs/ufs_inode.c index b9bbe9e..c9ac362 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); |