diff options
author | kib <kib@FreeBSD.org> | 2008-09-16 10:52:25 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-16 10:52:25 +0000 |
commit | f67f57a431df0cebe903f455fbe18bc08a370359 (patch) | |
tree | cf8f2090a75d9d204ea205acc204c76738f22ce4 /sys/ufs | |
parent | fda3e37246e9e9fbb10e3f7ebb976ec958cdd9e3 (diff) | |
download | FreeBSD-src-f67f57a431df0cebe903f455fbe18bc08a370359.zip FreeBSD-src-f67f57a431df0cebe903f455fbe18bc08a370359.tar.gz |
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
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 4244588..ae532b6 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; } /* |