/* Convert an NFS error code to a local one. This one is used jointly by NFSv2 and NFSv3.  */
int nfs_stat_to_errno(int stat)
/* Convert an NFS error code to a local one. This one is used jointly by NFSv2 and NFSv3.  */
int nfs_stat_to_errno(int stat)
{
	int i;
	for (i = 0; nfs_errtbl[i].stat != -1; i++) {
		if (nfs_errtbl[i].stat == stat)
			return nfs_errtbl[i].errno;
	}
	dprintk("nfs_stat_to_errno: bad nfs status return value: %d\n", stat);
	return nfs_errtbl[i].errno;
}