summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-08-16 18:06:22 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-08-16 18:06:22 +0200
commit713beb6d423144456a458c7bb984a29ae70b3a9e (patch)
tree3f329edb2030c01c810b46c96a66885c33de105c
parentf3b27fd889ff31531ecd69bbfd1013c9ba57814e (diff)
devmnt: fix mistake in mntrahread()
mntrahread() had the prefetch window condition wrong so it would very agressively prefetch ignoring the prefetch window.
-rw-r--r--sys/src/9/port/devmnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devmnt.c b/sys/src/9/port/devmnt.c
index e6bbd02dc..96b627eb6 100644
--- a/sys/src/9/port/devmnt.c
+++ b/sys/src/9/port/devmnt.c
@@ -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;