]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Return valid errors from nfs2/3_decode_dirent()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 24 Feb 2022 15:59:37 +0000 (10:59 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 28 Feb 2022 15:11:32 +0000 (10:11 -0500)
commit8e158ddd60cdc34739d51a9cfcb0c9ae6ac2b957
tree0ff9768007b09b52f98985cc593de36750db7afc
parent80fde5355e2effffbe243a2ea5b335b4c0bfae71
NFS: Return valid errors from nfs2/3_decode_dirent()

Valid return values for decode_dirent() callback functions are:
 0: Success
 -EBADCOOKIE: End of directory
 -EAGAIN: End of xdr_stream

All errors need to map into one of those three values.

Fixes: 0e59c20f75ce ("NFS: Simplify ->decode_dirent() calling sequence")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c