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:
parent
f3b27fd889
commit
713beb6d42
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue