summaryrefslogtreecommitdiff
path: root/sys/src/9/xen
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-12-16 05:41:20 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-12-16 05:41:20 +0100
commit8309f15c3669d684da7c3fe2b6748f9362e1cc38 (patch)
tree5ead9402b229ba4bb6f59d99c472b0d287b86ecb /sys/src/9/xen
parentbc97fa79b1b1d5e731f949d92d35d7ad839f1d35 (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