Set IN_MODIFIED for the synchronous directory inode writes in the MKDIR_PARENT
case, too.
This commit is contained in:
parent
8f1cd9886e
commit
e5ca8f815d
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ffs_softdep.c,v 1.12 2000/05/30 21:57:22 mycroft Exp $ */
|
/* $NetBSD: ffs_softdep.c,v 1.13 2000/05/31 00:16:16 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
|
* Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
|
||||||
|
@ -3804,6 +3804,7 @@ softdep_fsync(vp)
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
error = UFS_UPDATE(pvp, 1);
|
error = UFS_UPDATE(pvp, 1);
|
||||||
#else
|
#else
|
||||||
|
VTOI(pvp)->i_flag |= IN_MODIFIED;
|
||||||
error = VOP_UPDATE(pvp, NULL, NULL, UPDATE_WAIT);
|
error = VOP_UPDATE(pvp, NULL, NULL, UPDATE_WAIT);
|
||||||
#endif
|
#endif
|
||||||
if (error) {
|
if (error) {
|
||||||
|
@ -4266,6 +4267,7 @@ flush_pagedep_deps(pvp, mp, diraddhdp)
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
error = UFS_UPDATE(pvp, 1);
|
error = UFS_UPDATE(pvp, 1);
|
||||||
#else
|
#else
|
||||||
|
VTOI(pvp)->i_flag |= IN_MODIFIED;
|
||||||
error = VOP_UPDATE(pvp, NULL, NULL, UPDATE_WAIT);
|
error = VOP_UPDATE(pvp, NULL, NULL, UPDATE_WAIT);
|
||||||
#endif
|
#endif
|
||||||
if (error)
|
if (error)
|
||||||
|
|
Loading…
Reference in New Issue