diff options
author | 2003-03-10 19:35:29 +0000 | |
---|---|---|
committer | 2003-03-10 19:35:29 +0000 | |
commit | 8f3bfcc352239b5377226891d1fbd03ff7be88f6 (patch) | |
tree | 2cac0a77781c714514dbe4c3e8eb20ff67213331 | |
parent | fix exit code, stupid bob, spotted by lebel (diff) | |
download | wireguard-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.c | 4 |
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); |