shithub: riscv

Download patch

ref: 6c99d2f028a889602134f7117ff571991634dcf8
parent: 64ed3658d2abe3829f0619e8243c60edcc1d3815
author: cinap_lenrek <[email protected]>
date: Tue Jun 16 02:05:12 EDT 2015

kernel: remove waserror() arround newpage() in mntcache

newpage() does not raise error().

--- a/sys/src/9/port/cache.c
+++ b/sys/src/9/port/cache.c
@@ -350,12 +350,11 @@
 					pe = offset+l;
 			}
 		} else {
-			if(needpages(nil) || waserror()){
+			if(needpages(nil)){
 				invalidate(m, offset + pn*BY2PG, len);
 				break;
 			}
 			p = newpage(0, nil, pn*BY2PG);
-			poperror();
 			p->daddr = cacheaddr(m, pn);
 			cachedel(&fscache, p->daddr);
 			cachepage(p, &fscache);