~kris/9p

9hist

7b65f479302e4df12717ea5ad2530c7c981bbc65 — David du Colombier 26 years ago 1f1afa3
Plan 9 from Bell Labs 1999-11-01
1 files changed, 1 insertions(+), 1 deletions(-)

M port/cache.c
M port/cache.c => port/cache.c +1 -1
@@ 396,7 396,7 @@ cchain(uchar *buf, ulong offset, int len, Extent **tail)
		lock(&cache);
		e->bid = cache.pgno;
		cache.pgno += BY2PG;
		/* wrap the counter; low bits are unused by pghash by checked by lookpage */
		/* wrap the counter; low bits are unused by pghash but checked by lookpage */
		if((cache.pgno & ~(BY2PG-1)) == 0){
			if(cache.pgno == BY2PG-1){
				print("cache wrapped\n");