NFS: Use the "nfs_stat" enum for nfs_stat_to_errno()'s argument
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Dec 2010 14:55:00 +0000 (14:55 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:21 +0000 (12:37 -0500)
commit858284932462cec260f3d1d7426aeb03f5dbc2ad
tree4091fe326b0b96eaa25fb766111b922ada5b3773
parent282ac2a573dd1be4230710932cd471ed5a3a94b8
NFS: Use the "nfs_stat" enum for nfs_stat_to_errno()'s argument

Clean up.

To distinguish more clearly between the on-the-wire NFSERR_ value and
our local errno values, use the proper type for the argument of
nfs_stat_to_errno().

Add a documenting comment appropriate for a global function shared
outside this source file.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/internal.h
fs/nfs/nfs2xdr.c