Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2009 11:21:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r187891 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb ufs/ffs
Message-ID:  <200901291121.n0TBLFUX052766@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jan 29 11:21:15 2009
New Revision: 187891
URL: http://svn.freebsd.org/changeset/base/187891

Log:
  MFC r183067:
  The struct inode *ip supplied to softdep_freefile is not neccessary the
  inode having number ino. In r170991, the ip was marked IN_MODIFIED, that
  is not quite correct.
  
  Mark only the right inode modified by checking inode number.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/ufs/ffs/ffs_softdep.c

Modified: stable/7/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- stable/7/sys/ufs/ffs/ffs_softdep.c	Thu Jan 29 11:17:11 2009	(r187890)
+++ stable/7/sys/ufs/ffs/ffs_softdep.c	Thu Jan 29 11:21:15 2009	(r187891)
@@ -2606,7 +2606,8 @@ softdep_freefile(pvp, ino, mode)
 	}
 	WORKLIST_INSERT(&inodedep->id_inowait, &freefile->fx_list);
 	FREE_LOCK(&lk);
-	ip->i_flag |= IN_MODIFIED;
+	if (ip->i_number == ino)
+		ip->i_flag |= IN_MODIFIED;
 }
 
 /*



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