summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-02-06 17:59:14 +0000
committerkib <kib@FreeBSD.org>2012-02-06 17:59:14 +0000
commit5a41c683adecdf3f6a56ac466e8d61726b9889f1 (patch)
tree39ebdd716bba6a6c96a58842cf3e7788cbe27397 /sys/ufs
parent1a6892cbe765f81bb0881e5206ece5fca2be33f2 (diff)
downloadFreeBSD-src-5a41c683adecdf3f6a56ac466e8d61726b9889f1.zip
FreeBSD-src-5a41c683adecdf3f6a56ac466e8d61726b9889f1.tar.gz
Add missing opt_quota.h include to activate #ifdef QUOTA blocks,
apparently a step in unbreaking QUOTA support. Reported and tested by: Adam Strohl <adams-freebsd ateamsystems com> MFC after: 1 week
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 7b79b7e..8204e0b 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -43,6 +43,7 @@
__FBSDID("$FreeBSD$");
#include "opt_ffs.h"
+#include "opt_quota.h"
#include "opt_ddb.h"
/*
@@ -6428,7 +6429,7 @@ softdep_setup_freeblocks(ip, length, flags)
}
#ifdef QUOTA
/* Reference the quotas in case the block count is wrong in the end. */
- quotaref(vp, freeblks->fb_quota);
+ quotaref(ITOV(ip), freeblks->fb_quota);
(void) chkdq(ip, -datablocks, NOCRED, 0);
#endif
freeblks->fb_chkcnt = -datablocks;
OpenPOWER on IntegriCloud