svn commit: r231954 - stable/9/sys/ufs/ffs

Konstantin Belousov kib at FreeBSD.org
Tue Feb 21 01:46:42 UTC 2012


Author: kib
Date: Tue Feb 21 01:46:41 2012
New Revision: 231954
URL: http://svn.freebsd.org/changeset/base/231954

Log:
  MFC r231572 (by mckusick):
  Missing conditions in checking whether an inode has been written.

Modified:
  stable/9/sys/ufs/ffs/ffs_softdep.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- stable/9/sys/ufs/ffs/ffs_softdep.c	Tue Feb 21 01:43:31 2012	(r231953)
+++ stable/9/sys/ufs/ffs/ffs_softdep.c	Tue Feb 21 01:46:41 2012	(r231954)
@@ -7160,13 +7160,16 @@ check_inode_unwritten(inodedep)
 	mtx_assert(&lk, MA_OWNED);
 
 	if ((inodedep->id_state & (DEPCOMPLETE | UNLINKED)) != 0 ||
+	    !LIST_EMPTY(&inodedep->id_dirremhd) ||
 	    !LIST_EMPTY(&inodedep->id_pendinghd) ||
 	    !LIST_EMPTY(&inodedep->id_bufwait) ||
 	    !LIST_EMPTY(&inodedep->id_inowait) ||
+	    !TAILQ_EMPTY(&inodedep->id_inoreflst) ||
 	    !TAILQ_EMPTY(&inodedep->id_inoupdt) ||
 	    !TAILQ_EMPTY(&inodedep->id_newinoupdt) ||
 	    !TAILQ_EMPTY(&inodedep->id_extupdt) ||
 	    !TAILQ_EMPTY(&inodedep->id_newextupdt) ||
+	    !TAILQ_EMPTY(&inodedep->id_freeblklst) ||
 	    inodedep->id_mkdiradd != NULL || 
 	    inodedep->id_nlinkdelta != 0)
 		return (0);


More information about the svn-src-stable-9 mailing list