aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-05-21 07:30:19 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-05-22 09:30:17 +0000
commit42881526d401e7a9c09241e392b7ffa18cfe11d6 (patch)
tree78bfb5c2e0ccdf84f35cf8d3d1ff7428e96c3610
parentd713bf79273ad928f591dee2f8a553487e515e9b (diff)
downloadsrc-42881526d401e7a9c09241e392b7ffa18cfe11d6.tar.gz
src-42881526d401e7a9c09241e392b7ffa18cfe11d6.zip
nullfs: dirty v_object must imply the need for inactivation
Otherwise pages are cleaned some time later when the lower fs decides that it is time to do it. This mostly manifests itself as delayed mtime update, e.g. breaking make-like programs. Reported by: mav Tested by: mav, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/fs/nullfs/null_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index 5bf470897c08..aeebce4ed086 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -818,7 +818,7 @@ static int
null_need_inactive(struct vop_need_inactive_args *ap)
{
- return (null_want_recycle(ap->a_vp));
+ return (null_want_recycle(ap->a_vp) || vn_need_pageq_flush(ap->a_vp));
}
/*