mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 03:13:59 +00:00 
			
		
		
		
	 5dd784d049
			
		
	
	
		5dd784d049
		
	
	
	
	
		
			
			This introduces the symmetric function to path_put() for getting a reference to the dentry and vfsmount of a struct path in the right order. Signed-off-by: Jan Blunck <jblunck@suse.de> Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			16 lines
		
	
	
		
			246 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			246 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _LINUX_PATH_H
 | |
| #define _LINUX_PATH_H
 | |
| 
 | |
| struct dentry;
 | |
| struct vfsmount;
 | |
| 
 | |
| struct path {
 | |
| 	struct vfsmount *mnt;
 | |
| 	struct dentry *dentry;
 | |
| };
 | |
| 
 | |
| extern void path_get(struct path *);
 | |
| extern void path_put(struct path *);
 | |
| 
 | |
| #endif  /* _LINUX_PATH_H */
 |