diff options
author | kib <kib@FreeBSD.org> | 2015-02-07 08:42:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-02-07 08:42:11 +0000 |
commit | 834093cd4831fa6a41e4935603d1a85783f0f359 (patch) | |
tree | 9fc3a2831499fbb9776e5ef4a584256b725ccde5 /sys/fs/tmpfs/tmpfs_subr.c | |
parent | b02e8ddcdf930ddb87aff9a7592ca47e86da146b (diff) | |
download | FreeBSD-src-834093cd4831fa6a41e4935603d1a85783f0f359.zip FreeBSD-src-834093cd4831fa6a41e4935603d1a85783f0f359.tar.gz |
MFC r278000:
Update directory times immediately after an entry is created or
removed.
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_subr.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 04ccd18..fed5792 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -991,6 +991,7 @@ tmpfs_dir_attach(struct vnode *vp, struct tmpfs_dirent *de) dnode->tn_size += sizeof(struct tmpfs_dirent); dnode->tn_status |= TMPFS_NODE_ACCESSED | TMPFS_NODE_CHANGED | \ TMPFS_NODE_MODIFIED; + tmpfs_update(vp); } /* @@ -1036,6 +1037,7 @@ tmpfs_dir_detach(struct vnode *vp, struct tmpfs_dirent *de) dnode->tn_size -= sizeof(struct tmpfs_dirent); dnode->tn_status |= TMPFS_NODE_ACCESSED | TMPFS_NODE_CHANGED | \ TMPFS_NODE_MODIFIED; + tmpfs_update(vp); } void |