linux/fs/nfs_common/common.c

// SPDX-License-Identifier: GPL-2.0-only

#include <linux/module.h>
#include <linux/nfs_common.h>
#include <linux/nfs4.h>

/*
 * We need to translate between nfs status return values and
 * the local errno values which may not be the same.
 */
static const struct {} nfs_errtbl[] =;

/**
 * nfs_stat_to_errno - convert an NFS status code to a local errno
 * @status: NFS status code to convert
 *
 * Returns a local errno value, or -EIO if the NFS status code is
 * not recognized.  This function is used jointly by NFSv2 and NFSv3.
 */
int nfs_stat_to_errno(enum nfs_stat status)
{}
EXPORT_SYMBOL_GPL();

/*
 * We need to translate between nfs v4 status return values and
 * the local errno values which may not be the same.
 */
static const struct {} nfs4_errtbl[] =;

/*
 * Convert an NFS error code to a local one.
 * This one is used by NFSv4.
 */
int nfs4_stat_to_errno(int stat)
{}
EXPORT_SYMBOL_GPL();