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

/* Mapping from NFS error code to "errno" error code. */

int nfs_stat_to_errno(int status);
int nfs4_stat_to_errno(int stat);

__u32 nfs_localio_errno_to_nfs4_stat(int errno);

#endif /* _LINUX_NFS_COMMON_H */