diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2019-07-29 22:01:28 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2019-07-29 22:01:28 +0000 |
| commit | 98549e2dc6fb0c38fef2a5357b10c4eb99674d9d (patch) | |
| tree | 936bb59b20e13c4792fdc1b407ad6aee087773c8 /sys/dev/etherswitch | |
| parent | 724450761630cc0b3d8991ec2de00a8ceb507384 (diff) | |
Centralize the logic in vfs_vmio_unwire() and sendfile_free_page().
Both of these functions atomically unwire a page, optionally attempt
to free the page, and enqueue or requeue the page. Add functions
vm_page_release() and vm_page_release_locked() to perform the same task.
The latter must be called with the page's object lock held.
As a side effect of this refactoring, the buffer cache will no longer
attempt to free mapped pages when completing direct I/O. This is
consistent with the handling of pages by sendfile(SF_NOCACHE).
Reviewed by: alc, kib
MFC after: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D20986
Notes
svn path=/head/; revision=350431
Diffstat (limited to 'sys/dev/etherswitch')
0 files changed, 0 insertions, 0 deletions
