plan 9 kernel history: overview | file list | diff list

1998/0512/port/cache.c (diff list | history)

1998/0327/sys/src/9/port/cache.c:56,621998/0512/sys/src/9/port/cache.c:56,62 (short | long | prev | next)
Whitespace edit.
rsc Fri Mar 4 12:44:25 2005
1993/1014    
 
	cache.head = xalloc(sizeof(Mntcache)*NFILE); 
	m = cache.head; 
	                 
1998/0512    
 
1993/1016    
	for(i = 0; i < NFILE-1; i++) { 
1993/1014    
		m->next = m+1; 
		m->prev = m-1; 
1998/0327/sys/src/9/port/cache.c:129,1351998/0512/sys/src/9/port/cache.c:129,135
1993/1016    
ctail(Mntcache *m) 
1993/1013    
{ 
	/* Unlink and send to the tail */ 
	if(m->prev)  
1998/0512    
	if(m->prev) 
1993/1013    
		m->prev->next = m->next; 
	else 
		cache.head = m->next; 
1998/0327/sys/src/9/port/cache.c:534,5401998/0512/sys/src/9/port/cache.c:534,540
1993/1015    
	for(f = m->list; f; f = f->next) { 
1993/1017    
		if(f->start >= offset) 
1993/1015    
			break; 
		p = f;		 
1998/0512    
		p = f; 
1996/0326    
	} 
 
1996/0402    
	if(0 && f != 0 && offset < f->start+f->len) { 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)