/* However, the OpenGroup XNFS spec provides a simple mapping that is independent of local errno values on the server and the client.  */
static int decode_status(struct xdr_stream *xdr, struct mountres *res)
/* However, the OpenGroup XNFS spec provides a simple mapping that is independent of local errno values on the server and the client.  */
static int decode_status(struct xdr_stream *xdr, struct mountres *res)
{
	unsigned int i;
	u32 status;
	__be32 *p;
	p = xdr_inline_decode(xdr, sizeof(status));
	if (unlikely(p == NULL))
		return -EIO;
	status = ntohl(*p);
	for (i = 0; i < ARRAY_SIZE(mnt_errtbl); i++) {
		if (mnt_errtbl[i].status == status) {
			res->errno = mnt_errtbl[i].errno;
			return 0;
		}
	}
	dprintk("NFS: unrecognized MNT status code: %u\n", status);
	res->errno = -EACCES;
	return 0;
}