[PATCH] nfsd4_truncate() bogus return value
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 19 Jan 2006 01:43:46 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:27 +0000 (19:20 -0800)
commit9246585a117f182d26a5a5c15872c3e8fcf44dd6
treefe8d8ce681a9bf48f64d270fd95e128864962dfa
parentd75f2b9f5da71667aba7e97a962c49f1e17aa4ca
[PATCH] nfsd4_truncate() bogus return value

-EINVAL (in host order, no less) is not a good thing to return to client.

nfsd4_truncate() returns it in one case and its callers expect nfs_....  from
it.  AFAICS, it should be nfserr_inval

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c