diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-14 22:23:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-14 22:23:16 +0200 |
commit | 2e85e328864c215c2efa228f129ce3fa6aa1db1f (patch) | |
tree | 0cff25891d80c72978e16c5784b07923b0b1017e /sys/src/cmd/9660srv/fns.h | |
parent | f5688dd6c9bfb6cee00f2c5e5f190d7a2ffaa6c6 (diff) |
9660srv: keep data and metadata separate in the cache with a tag
data on the disk is layed out sequentially and directory information
is at the end of the disk. we want to keep data and metadata separated
so that reading large sequential files will not evict the directory
information from the cache causing long seeks.
for that, we tag the clusters (an 8th for metadata, and the rest
for data) and getbuf() will only evict clusters of the same tag.
Diffstat (limited to 'sys/src/cmd/9660srv/fns.h')
-rw-r--r-- | sys/src/cmd/9660srv/fns.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/9660srv/fns.h b/sys/src/cmd/9660srv/fns.h index 1bae3b507..2862d5a63 100644 --- a/sys/src/cmd/9660srv/fns.h +++ b/sys/src/cmd/9660srv/fns.h @@ -1,7 +1,7 @@ void chat(char*, ...); void* ealloc(long); void error(char*); -Iobuf* getbuf(Xdata*, ulong); +Iobuf* getbuf(Xdata*, ulong, ulong); Xdata* getxdata(char*); void iobuf_init(void); void nexterror(void); |