mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	 77b1fe8fa8
			
		
	
	
		77b1fe8fa8
		
	
	
	
	
		
			
			Add sloopy atomic declaration which will need to be fixed (eventually) Fill out more of the Solaris VM hooks Adjust the create_thread function git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@26 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _SPL_VMSYSTM_H
 | |
| #define _SPL_VMSYSTM_H
 | |
| 
 | |
| #include <linux/mm.h>
 | |
| 
 | |
| #define physmem				num_physpages
 | |
| #define ptob(pages)			(pages * PAGE_SIZE)
 | |
| #define membar_producer()		smp_wmb()
 | |
| 
 | |
| #if 0
 | |
| /* The approximate total number of free pages */
 | |
| #define freemem				0
 | |
| 
 | |
| /* The average number of free pages over the last 5 seconds */
 | |
| #define avefree				0
 | |
| 
 | |
| /* The average number of free pages over the last 30 seconds */
 | |
| #define avefree30			0
 | |
| 
 | |
| /* A guess as to how much memory has been promised to
 | |
|  * processes but not yet allocated */
 | |
| #define deficit				0
 | |
| 
 | |
| /* A guess as to how many page are needed to satisfy
 | |
|  * stalled page creation requests */
 | |
| #define needfree			0
 | |
| 
 | |
| /* A bootlean the controls the setting of deficit */
 | |
| #define desperate
 | |
| 
 | |
| /* When free memory is above this limit, no paging or swapping is done */
 | |
| #define lotsfree			0
 | |
| 
 | |
| /* When free memory is above this limit, swapping is not performed */
 | |
| #define desfree				0
 | |
| 
 | |
| /* Threshold for many low memory tests, e.g. swapping is
 | |
|  * more active below this limit */
 | |
| #define minfree				0
 | |
| #endif
 | |
| 
 | |
| #endif /* SPL_VMSYSTM_H */
 |