From 55bf3f8e5b3d3ca6ae23ae6411e1a0b7c78811a7 Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 13 Feb 2012 10:48:43 +0000 Subject: [PATCH 145/175] MFC r231091: Add missing opt_quota.h include to activate #ifdef QUOTA blocks. git-svn-id: http://svn.freebsd.org/base/stable/9@231581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f (cherry picked from commit 9efd88d4bb87fde9738627a95d2e48b9e949a8ec) Signed-off-by: Xin Li --- sys/ufs/ffs/ffs_softdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 9085ea5..a638e91 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" /* @@ -6427,7 +6428,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; -- 1.7.9.4