summaryrefslogtreecommitdiff
path: root/include/linux/nfs_common.h
blob: 5fc02df882521e11ec9b43e9c0fd89db566223d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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 */