]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs_common: factor out nfs_errtbl and nfs_stat_to_errno
authorMike Snitzer <snitzer@kernel.org>
Mon, 12 Jan 2026 14:27:00 +0000 (09:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:30:00 +0000 (16:30 +0100)
commit249d45ca97381d56abeb8e9d882f6c39bbba8381
treecb52c79176c360497e06ef4a07b9d189195b146f
parent93a2e7eaf876dbcd4cae416464390a6e6f58cdf3
nfs_common: factor out nfs_errtbl and nfs_stat_to_errno

[ Upstream commit 4806ded4c14c5e8fdc6ce885d83221a78c06a428 ]

Common nfs_stat_to_errno() is used by both fs/nfs/nfs2xdr.c and
fs/nfs/nfs3xdr.c

Will also be used by fs/nfsd/localio.c

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Stable-dep-of: c6c209ceb87f ("NFSD: Remove NFSERR_EAGAIN")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/Kconfig
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c
fs/nfs_common/Makefile
fs/nfs_common/common.c [new file with mode: 0644]
fs/nfsd/Kconfig
include/linux/nfs_common.h [new file with mode: 0644]