Commit 133ed8cc authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] knfsd: nfsd4: encode_dirent: fix dropit return

We need to handle nfserr_dropit as a special case here, since we don't
want to return it in the rdattr_error attribute.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cde2c5bc
...@@ -1861,6 +1861,8 @@ nfsd4_encode_dirent(struct readdir_cd *ccd, const char *name, int namlen, ...@@ -1861,6 +1861,8 @@ nfsd4_encode_dirent(struct readdir_cd *ccd, const char *name, int namlen,
case nfserr_resource: case nfserr_resource:
nfserr = nfserr_toosmall; nfserr = nfserr_toosmall;
goto fail; goto fail;
case nfserr_dropit:
goto fail;
default: default:
/* /*
* If we get here, we experienced a miscellaneous * If we get here, we experienced a miscellaneous
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment