mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-30 18:47:25 +00:00 
			
		
		
		
	 8d0a8a9d0e
			
		
	
	
		8d0a8a9d0e
		
	
	
	
	
		
			
			Ensure that lock owner structures are not released prematurely. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			484 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			484 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _NFS_FS_I
 | |
| #define _NFS_FS_I
 | |
| 
 | |
| #include <asm/types.h>
 | |
| #include <linux/list.h>
 | |
| #include <linux/nfs.h>
 | |
| 
 | |
| struct nlm_lockowner;
 | |
| 
 | |
| /*
 | |
|  * NFS lock info
 | |
|  */
 | |
| struct nfs_lock_info {
 | |
| 	u32		state;
 | |
| 	u32		flags;
 | |
| 	struct nlm_lockowner *owner;
 | |
| };
 | |
| 
 | |
| struct nfs4_lock_state;
 | |
| struct nfs4_lock_info {
 | |
| 	struct nfs4_lock_state *owner;
 | |
| };
 | |
| 
 | |
| /*
 | |
|  * Lock flag values
 | |
|  */
 | |
| #define NFS_LCK_GRANTED		0x0001		/* lock has been granted */
 | |
| #define NFS_LCK_RECLAIM		0x0002		/* lock marked for reclaiming */
 | |
| 
 | |
| #endif
 |