Skip to content

Commit

Permalink
nullfs: dirty v_object must imply the need for inactivation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kostikbel committed May 22, 2021
1 parent d713bf7 commit 4288152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/fs/nullfs/null_vnops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/*
Expand Down

0 comments on commit 4288152

Please sign in to comment.