NFS: nfsacl_{encode,decode} should return signed integer
authorChuck Lever <chuck.lever@oracle.com>
Fri, 21 Jan 2011 03:05:28 +0000 (03:05 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Jan 2011 20:24:47 +0000 (15:24 -0500)
commit731f3f482ad3b2c58a1af2d0a9a634a82803706a
tree1425c239481309ffc68dd33a991fc13fc309226c
parentee5dc7732bd557bae6d10873a0aac606d2c551fb
NFS: nfsacl_{encode,decode} should return signed integer

Clean up.

The nfsacl_encode() and nfsacl_decode() functions return negative
errno values, and each call site verifies that the returned value
is not negative.  Change the synopsis of both of these functions
to reflect this usage.

Document the synopsis and return values.

Reported-by: Trond Myklebust <trond.myklebust@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs_common/nfsacl.c
include/linux/nfsacl.h