]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite51b409d70789116a8e7a6dcd95691879ccb8d12
treee000767b8df1e5f96b2a5687fce2ba2f557b1690
parenta4ff348418653ec297bf0496b1f6c02c58403f0f
NFSD: restore EINVAL error translation in nfsd_commit()

commit 3d90016fbb8d ("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: 3d90016fbb8d ("nfsd: Replace use of rwsem with errseq_t")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c