Author: kib
Date: Mon Feb  6 17:59:14 2012
New Revision: 231091
URL: http://svn.freebsd.org/changeset/base/231091

Log:
  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

Modified:
  head/sys/ufs/ffs/ffs_softdep.c

Modified: head/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- head/sys/ufs/ffs/ffs_softdep.c      Mon Feb  6 17:31:13 2012        
(r231090)
+++ head/sys/ufs/ffs/ffs_softdep.c      Mon Feb  6 17:59:14 2012        
(r231091)
@@ -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, fla
        }
 #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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to