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.

Reviewed by:	tegge
In collaboration with:	pho
MFC after:	 1 month
This commit is contained in:
Konstantin Belousov 2008-09-16 10:52:25 +00:00
parent acd5ab2fcb
commit 0411d79138
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183067

View file

@ -2621,7 +2621,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;
}
/*