]> 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:39:09 +0000 (09:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:39:33 +0000 (16:39 +0100)
commit41daec7ee7e9c6068628b651f5779c5b22837287
tree15de9abd21f8e5678c96708094f9576755578187
parent2e5b886c8516747057725d65d38e435a5db1245e
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]