1 /* SPDX-License-Identifier: GPL-2.0 */
3 * This file contains constants and methods used by both NFS client and server.
5 #ifndef _LINUX_NFS_COMMON_H
6 #define _LINUX_NFS_COMMON_H
8 #include <linux/errno.h>
9 #include <uapi/linux/nfs.h>
11 /* Mapping from NFS error code to "errno" error code. */
12 #define errno_NFSERR_IO EIO
14 int nfs_stat_to_errno(enum nfs_stat status
);
15 int nfs4_stat_to_errno(int stat
);
17 #endif /* _LINUX_NFS_COMMON_H */