summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-03-10 19:35:30 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-03-10 19:35:30 +0000
commit423ed842817d6f30f62f8bc676eb592ce3fd7eca (patch)
treecd79697a95e0ff332dab39d49325cda5e646149c
parentb8578ef6c143fd8981b2bf27250941cb36f47231 (diff)
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);