mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-04 18:16:33 +00:00
Common nfs_stat_to_errno() is used by both fs/nfs/nfs2xdr.c and fs/nfs/nfs3xdr.c Will also be used by fs/nfsd/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
402 B
C
17 lines
402 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);
|
|
|
|
#endif /* _LINUX_NFS_COMMON_H */
|