mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 14:34:28 +08:00
nfsd4: fix alloc_init_session return type
This returns an nfs error, not -ERRNO. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
c23753dac1
commit
dd93842457
@ -639,9 +639,7 @@ static inline int slot_bytes(struct nfsd4_channel_attrs *ca)
|
|||||||
return ca->maxresp_cached - NFSD_MIN_HDR_SEQ_SZ;
|
return ca->maxresp_cached - NFSD_MIN_HDR_SEQ_SZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static __be32 alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp, struct nfsd4_create_session *cses)
|
||||||
alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp,
|
|
||||||
struct nfsd4_create_session *cses)
|
|
||||||
{
|
{
|
||||||
struct nfsd4_session *new, tmp;
|
struct nfsd4_session *new, tmp;
|
||||||
struct nfsd4_slot *sp;
|
struct nfsd4_slot *sp;
|
||||||
|
Loading…
Reference in New Issue
Block a user