summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-03-10 19:35:29 +0000
committertedu <tedu@openbsd.org>2003-03-10 19:35:29 +0000
commit8f3bfcc352239b5377226891d1fbd03ff7be88f6 (patch)
tree2cac0a77781c714514dbe4c3e8eb20ff67213331
parentfix exit code, stupid bob, spotted by lebel (diff)
downloadwireguard-openbsd-8f3bfcc352239b5377226891d1fbd03ff7be88f6.tar.xz
wireguard-openbsd-8f3bfcc352239b5377226891d1fbd03ff7be88f6.zip
fix really old typo that prevented inode quotas from ever working.
help testing and eyeballing henric tdeval miod ok costa deraadt
-rw-r--r--sys/ufs/ufs/ufs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_inode.c b/sys/ufs/ufs/ufs_inode.c
index cdcbd6ecb6f..fcf867fc24e 100644
--- a/sys/ufs/ufs/ufs_inode.c
+++ b/sys/ufs/ufs/ufs_inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_inode.c,v 1.17 2002/02/22 20:37:46 drahn Exp $ */
+/* $OpenBSD: ufs_inode.c,v 1.18 2003/03/10 19:35:29 tedu Exp $ */
/* $NetBSD: ufs_inode.c,v 1.7 1996/05/11 18:27:52 mycroft Exp $ */
/*
@@ -99,7 +99,7 @@ ufs_inactive(v)
if (ip->i_ffs_mode == 0)
goto out;
if (ip->i_ffs_nlink <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) {
- if (getinoquota(ip) != 0)
+ if (getinoquota(ip) == 0)
(void)ufs_quota_free_inode(ip, NOCRED);
(void) UFS_TRUNCATE(ip, (off_t)0, 0, NOCRED);