summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_balloc.c
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-11-21 21:23:57 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-11-21 21:23:57 +0000
commit2eb4d9d2d38cc3eb793eb11a9635b95d702fbc8c (patch)
treeb79f1f20dc3691c47d6083bdb3f285c530af0c46 /sys/ufs/ffs/ffs_balloc.c
parent707190112f1bbf51379b1e841680aac8aaec1c77 (diff)
Don't use #define QUOTA - use stub file instead
Pass over the quota code in ufs/. Make code paths clearer. Clean up some names. Move all code that manipulates quotas directly into ufs_quota.c Use vfs_mount_foreach_vnode to traverse list of vnodes in mountpoint.
Diffstat (limited to 'sys/ufs/ffs/ffs_balloc.c')
-rw-r--r--sys/ufs/ffs/ffs_balloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c
index 681de31b2e6..009adc91ff9 100644
--- a/sys/ufs/ffs/ffs_balloc.c
+++ b/sys/ufs/ffs/ffs_balloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_balloc.c,v 1.17 2001/11/13 16:01:10 art Exp $ */
+/* $OpenBSD: ffs_balloc.c,v 1.18 2001/11/21 21:23:56 csapuntz Exp $ */
/* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */
/*
@@ -391,12 +391,11 @@ fail:
}
}
if (deallocated) {
-#ifdef QUOTA
/*
* Restore user's disk quota because allocation failed.
*/
- (void)chkdq(ip, (long)-btodb(deallocated), cred, FORCE);
-#endif
+ (void)ufs_quota_free_blocks(ip, btodb(deallocated), cred);
+
ip->i_ffs_blocks -= btodb(deallocated);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
}