forked from mirrors/linux
		
	 1fcb16674e
			
		
	
	
		1fcb16674e
		
	
	
	
	
		
			
			Common nfs4_stat_to_errno() is used by fs/nfs/nfs4xdr.c and will be used by fs/nfs/localio.c Signed-off-by: Mike Snitzer <snitzer@kernel.org> Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			436 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			436 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| /*
 | |
|  * This file contains constants and methods used by both NFS client and server.
 | |
|  */
 | |
| #ifndef _LINUX_NFS_COMMON_H
 | |
| #define _LINUX_NFS_COMMON_H
 | |
| 
 | |
| #include <linux/errno.h>
 | |
| #include <uapi/linux/nfs.h>
 | |
| 
 | |
| /* Mapping from NFS error code to "errno" error code. */
 | |
| #define errno_NFSERR_IO EIO
 | |
| 
 | |
| int nfs_stat_to_errno(enum nfs_stat status);
 | |
| int nfs4_stat_to_errno(int stat);
 | |
| 
 | |
| #endif /* _LINUX_NFS_COMMON_H */
 |