NFSD: restore EINVAL error translation in nfsd_commit()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 25 Jun 2022 20:52:43 +0000 (23:52 +0300)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 27 Jun 2022 14:33:05 +0000 (10:33 -0400)
commit8a9ffb8c857c2c99403bd6483a5a005fed5c0773
treee000767b8df1e5f96b2a5687fce2ba2f557b1690
parentda9e94fe000e11f21d3d6f66012fe5c6379bd93c
NFSD: restore EINVAL error translation in nfsd_commit()

commit 555dbf1a9aac ("nfsd: Replace use of rwsem with errseq_t")
incidentally broke translation of -EINVAL to nfserr_notsupp.
The patch restores that.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 555dbf1a9aac ("nfsd: Replace use of rwsem with errseq_t")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c