devmnt: fix mistake in mntrahread()

mntrahread() had the prefetch window condition wrong so
it would very agressively prefetch ignoring the prefetch
window.
This commit is contained in:
cinap_lenrek 2016-08-16 18:06:22 +02:00
parent f3b27fd889
commit 713beb6d42

View file

@ -897,7 +897,7 @@ mntrahread(Mntrah *rah, Chan *c, uchar *buf, long len, vlong off)
if(rah->seq >= 2*c->iounit){
w = (off / c->iounit) * c->iounit;
e = w + rah->seq;
for(o = w; w < e; o += c->iounit){
for(o = w; o < e; o += c->iounit){
if(rahfindrpc(rah, o) != nil)
continue;