]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs: add vop_getpages method implementation
authoravg <avg@FreeBSD.org>
Sat, 16 Oct 2010 20:43:05 +0000 (20:43 +0000)
committeravg <avg@FreeBSD.org>
Sat, 16 Oct 2010 20:43:05 +0000 (20:43 +0000)
commit6634407233da6cf3787d1c6e2a151d9ea012f942
treebf644b802d06b3ac565c485f3fdd175f3d5a3992
parentafcba250aaa205745643b19446da3a6dfd095ef1
zfs: add vop_getpages method implementation

This should make vnode_pager_getpages path a bit shorter and clearer.
Also this should eliminate problems with partially valid pages.
Having this method opens room for future optimizations.

To do: try to satisfy other pages besides the required one taking into
account tradeofs between number of page faults, read throughput and read
latency.  Also, eventually vop_putpages should be added too.

Reviewed by: kib, mm, pjd
MFC after: 3 weeks
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c