]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: move nfserrno() to vfs.c
authorJeff Layton <jlayton@kernel.org>
Tue, 18 Oct 2022 11:47:55 +0000 (07:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:21 +0000 (16:19 +0200)
commit4d1fa40d54ae85a34a9ddc2f600aff1e5693d338
tree8dcd917f5de2d76c7d9271ae5b258fb5e0576478
parent3b623a6a12b79568069283401bf16b61582d10fe
nfsd: move nfserrno() to vfs.c

[ Upstream commit cb12fae1c34b1fa7eaae92c5aadc72d86d7fae19 ]

nfserrno() is common to all nfs versions, but nfsproc.c is specifically
for NFSv2. Move it to vfs.c, and the prototype to vfs.h.

While we're in here, remove the #ifdef EDQUOT check in this function.
It's apparently a holdover from the initial merge of the nfsd code in
1997. No other place in the kernel checks that that symbol is defined
before using it, so I think we can dispense with it here.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/blocklayout.c
fs/nfsd/blocklayoutxdr.c
fs/nfsd/export.h
fs/nfsd/flexfilelayout.c
fs/nfsd/nfs4idmap.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h