mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 08:38:45 +02:00 
			
		
		
		
	 19fe87e00b
			
		
	
	
		19fe87e00b
		
	
	
	
	
		
			
			Standard inlining of fast paths - these locks are now used by our new nocow mode. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			195 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			195 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| 
 | |
| #include "two_state_shared_lock.h"
 | |
| 
 | |
| void __bch2_two_state_lock(two_state_lock_t *lock, int s)
 | |
| {
 | |
| 	__wait_event(lock->wait, bch2_two_state_trylock(lock, s));
 | |
| }
 |