svn commit: r283832 - head/sys/ufs/ffs

Konstantin Belousov kib at FreeBSD.org
Sun May 31 15:50:55 UTC 2015


Author: kib
Date: Sun May 31 15:50:54 2015
New Revision: 283832
URL: https://svnweb.freebsd.org/changeset/base/283832

Log:
  Remove unused variable.
  
  When deallocate_dependencies() is performed,
  softdep_journal_freeblocks() already called cancel_allocdirect() which
  should have eliminated direct dependencies for all truncated full
  blocks.  The indirect dependencies are allowed above, since second-
  and third-level dependencies are only dealt with by the code which
  frees indirect block, which happens after the inode write.
  
  Discussed with:	mckusick, jeff
  Reviewed by:	jeff
  Sponsored by:	The FreeBSD Foundation
  MFC after:	2 weeks

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

Modified: head/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- head/sys/ufs/ffs/ffs_softdep.c	Sun May 31 14:04:11 2015	(r283831)
+++ head/sys/ufs/ffs/ffs_softdep.c	Sun May 31 15:50:54 2015	(r283832)
@@ -7208,7 +7208,6 @@ deallocate_dependencies(bp, freeblks, of
 {
 	struct indirdep *indirdep;
 	struct pagedep *pagedep;
-	struct allocdirect *adp;
 	struct worklist *wk, *wkn;
 	struct ufsmount *ump;
 
@@ -7255,7 +7254,6 @@ deallocate_dependencies(bp, freeblks, of
 			break;
 
 		case D_ALLOCDIRECT:
-			adp = WK_ALLOCDIRECT(wk);
 			if (off != 0)
 				continue;
 			/* FALLTHROUGH */


More information about the svn-src-head mailing list