Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2015 15:50:54 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283832 - head/sys/ufs/ffs
Message-ID:  <201505311550.t4VFos0w020151@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505311550.t4VFos0w020151>