aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-09-15 22:06:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-09-15 22:06:36 +0000
commit3c484f325e60e961c476dfb6ebd992290667d6dd (patch)
tree2d952012e6511531fbcff7fbb1b2ce57aa2791a5 /sys/sys
parent888636655ddddb9e8ae3afb998c72fd2c99f63d5 (diff)
downloadsrc-3c484f325e60e961c476dfb6ebd992290667d6dd.tar.gz
src-3c484f325e60e961c476dfb6ebd992290667d6dd.zip
Convert page cache read to VOP.
There are several negative side-effects of not calling into VOP layer at all for page cache reads. The biggest is the missed activation of EVFILT_READ knotes. Also, it allows filesystem to make more fine grained decision to refuse read from page cache. Keep VIRF_PGREAD flag around, it is still useful for nullfs, and for asserts. Reviewed by: markj Tested by: pho Discussed with: mjg Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D26346
Notes
Notes: svn path=/head/; revision=365785
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/vnode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index bdeb5287c1db..942a160dff09 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -852,6 +852,7 @@ void vop_mknod_pre(void *a);
void vop_mknod_post(void *a, int rc);
void vop_open_post(void *a, int rc);
void vop_read_post(void *a, int rc);
+void vop_read_pgcache_post(void *ap, int rc);
void vop_readdir_post(void *a, int rc);
void vop_reclaim_post(void *a, int rc);
void vop_remove_pre(void *a);