From 0411d79138bf4df6b1dfdac9f4636c1ad0e1c9c2 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 16 Sep 2008 10:52:25 +0000 Subject: [PATCH] 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 --- sys/ufs/ffs/ffs_softdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 42445884a84..ae532b6d2e1 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -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; } /*