shithub: riscv

Download patch

ref: 6617c63a374f7211b41252d3957e8a89061b8a49
parent: 918cb7604039601fecd70379b8bc2fee5b26a514
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 26 01:43:26 EDT 2015

kernel: pipelined read ahead for the mount cache

this changes devmnt adding mntrahread() function and some helpers
for it to do pipelined sequential read ahead for the mount cache.

basically, cread() calls mntrahread() with Mntrah structure and it
figures out if we where reading sequentially and if thats the case
issues reads of c->iounit size in advance.

the read ahead state (Mntrah) is kept in the mount cache so we can
handle (read ahead) cache invalidation in the presence of writes.