plan9fox/sys
cinap_lenrek 2bc9e8e5e3 kernel: make image cache not hold onto the channel, remove nocache flag
the image cache should not hold onto the text file channel
when not neccesary. now, the image keeps track of the number
of page cache references in Image.pgref. if the number of
page cache references and Image.ref are equal, this means
all the references to this image are from the page cache.
so no segments are using this image. in that case, we can
close the channel, but keep the Image in the hash table.

when attachimage() finds our image, it will check if Image.c
is nil and reattach the channel to the image before it is
used.

the Image.nocache flag isnt needed anymore.
2013-11-08 22:31:26 +01:00
..
doc /sys/doc: permissions for cleanps, mkdirlist, mkfilelist 2012-10-20 19:09:54 +02:00
games/lib fortunes: that's great 2013-11-07 14:02:34 -05:00
include make libjson from /sys/src/cmd/btc/json.c 2013-10-27 15:44:33 -04:00
lib kernel: make image cache not hold onto the channel, remove nocache flag 2013-11-08 22:31:26 +01:00
man aml(2): english 2013-11-03 20:01:03 -05:00
src kernel: make image cache not hold onto the channel, remove nocache flag 2013-11-08 22:31:26 +01:00