]> 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)
commit86f03100de344b60910a2fa94e443e41dc5a8221
treee000767b8df1e5f96b2a5687fce2ba2f557b1690
parent50c540647fc169907685615c366b1986ef37728a
NFSD: restore EINVAL error translation in nfsd_commit()

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