nfs: return negative error value from nfs{,4}_stat_to_errno
authorBenny Halevy <bhalevy@panasas.com>
Mon, 31 Mar 2008 14:39:06 +0000 (17:39 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 19 Apr 2008 20:54:47 +0000 (16:54 -0400)
commit856dff3d3875bdc8b88e4a65779873af76776a69
tree03f10cfa3319df59987fa20b1e96902d96fdb4ee
parentd11d10cc05c94a32632d6928d15a1034200dd9a5
nfs: return negative error value from nfs{,4}_stat_to_errno

All use sites for nfs{,4}_stat_to_errno negate their return value.
It's more efficient to return a negative error from the stat_to_errno convertors
rather than negating its return value everywhere. This also produces slightly
smaller code.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c