]> Git Repo - linux.git/commit
NFS: Return valid errors from nfs2/3_decode_dirent()
authorTrond Myklebust <[email protected]>
Thu, 24 Feb 2022 15:59:37 +0000 (10:59 -0500)
committerTrond Myklebust <[email protected]>
Mon, 28 Feb 2022 15:11:32 +0000 (10:11 -0500)
commit64cfca85bacde54caa64e0ab855c48734894fa37
tree0ff9768007b09b52f98985cc593de36750db7afc
parentb38e09b9b613ee608c87bc00979db891ee9f0538
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: 573c4e1ef53a ("NFS: Simplify ->decode_dirent() calling sequence")
Signed-off-by: Trond Myklebust <[email protected]>
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
This page took 0.056184 seconds and 4 git commands to generate.