mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
NFSD: Move nfsd_v4client() out of nfsd.h
nfsd_v4client() is the last user in nfsd.h of XDR-defined item references. Once this helper moves out, <linux/nfs.h> and the other XDR-specific headers nfsd.h includes have nothing left to provide, and can be dropped. Reviewed-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260717184112.507548-7-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
parent
39647792b7
commit
4274816770
|
|
@ -146,10 +146,7 @@ extern u64 nfsd_io_cache_write __read_mostly;
|
|||
|
||||
extern int nfsd_max_blksize;
|
||||
|
||||
static inline int nfsd_v4client(struct svc_rqst *rq)
|
||||
{
|
||||
return rq && rq->rq_prog == NFS_PROGRAM && rq->rq_vers == 4;
|
||||
}
|
||||
bool nfsd_v4client(struct svc_rqst *rqstp);
|
||||
|
||||
/*
|
||||
* lockd binding
|
||||
|
|
|
|||
|
|
@ -207,6 +207,11 @@ int nfsd_minorversion(struct nfsd_net *nn, u32 minorversion, enum vers_op change
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool nfsd_v4client(struct svc_rqst *rqstp)
|
||||
{
|
||||
return rqstp && rqstp->rq_prog == NFS_PROGRAM && rqstp->rq_vers == 4;
|
||||
}
|
||||
|
||||
bool nfsd_net_try_get(struct net *net) __must_hold(rcu)
|
||||
{
|
||||
struct nfsd_net *nn = net_generic(net, nfsd_net_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user