diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-16 05:41:20 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-16 05:41:20 +0100 |
commit | 8309f15c3669d684da7c3fe2b6748f9362e1cc38 (patch) | |
tree | 5ead9402b229ba4bb6f59d99c472b0d287b86ecb /sys/src/9/xen | |
parent | bc97fa79b1b1d5e731f949d92d35d7ad839f1d35 (diff) |
kernel: new mount cache
this is a new more simple version of the mount cache
that does not require dynamic allocations for extends.
the Mntcache structure now contains a page bitmap
that is used for quick page invalidation. the size
of the bitmap is proportional to MAXCACHE.
instead of keeping track of cached range in the
Extend data structure, we keep all the information
in the Page itself. the offset from the page where
the cache range starts is in the low PGSHIT bits and
the end in the top bits of Page.va.
we choose Page.daddr to map 1:1 the Mountcache number
and page number (pn) in the Mountcache. to find a page,
we first check the bitmap if the page is there and then
do a pagelookup() with the daddr key.
Diffstat (limited to 'sys/src/9/xen')
0 files changed, 0 insertions, 0 deletions