This patch changes the prefetch API so that file systems must now provide a set of block numbers, rather than a set of buffers. The result is a leaner and more well-defined API; linear computation of the range of blocks to prefetch; duplicates no longer interfering with the prefetch process; guaranteed inclusion of the block needed next into the prefetch range; and, limits and policy decisions better established by libminixfs now actually being moved into libminixfs. Change-Id: I7e44daf2d2d164bc5e2f1473ad717f3ff0f0a77f
		
			
				
	
	
		
			15 lines
		
	
	
		
			251 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			251 B
		
	
	
	
		
			C
		
	
	
	
	
	
 | 
						|
#ifndef _MFS_CLEAN_H
 | 
						|
#define _MFS_CLEAN_H 1
 | 
						|
 | 
						|
#define MARKDIRTY(b) do { \
 | 
						|
	if (superblock.s_rd_only) { \
 | 
						|
		printf("%s:%d: dirty block on rofs! ", __FILE__, __LINE__); \
 | 
						|
		util_stacktrace(); \
 | 
						|
	} else { \
 | 
						|
		lmfs_markdirty(b); \
 | 
						|
	} \
 | 
						|
} while(0)
 | 
						|
 | 
						|
#endif
 |