summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-09-27 22:26:25 +0200
committerJ. Bruce Fields <bfields@redhat.com>2010-10-02 01:29:44 +0200
commitdd93842457174b847b023314e5a501e5ed45caeb (patch)
tree49fb9e43b6ad65b48f735c23070ef9347ccdceec /fs
parentnfsd4: fix alloc_init_session BUILD_BUG_ON() (diff)
downloadlinux-dd93842457174b847b023314e5a501e5ed45caeb.tar.xz
linux-dd93842457174b847b023314e5a501e5ed45caeb.zip
nfsd4: fix alloc_init_session return type
This returns an nfs error, not -ERRNO. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4state.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e30579432863..ebddcc173ed8 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -639,9 +639,7 @@ static inline int slot_bytes(struct nfsd4_channel_attrs *ca)
return ca->maxresp_cached - NFSD_MIN_HDR_SEQ_SZ;
}
-static int
-alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp,
- struct nfsd4_create_session *cses)
+static __be32 alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp, struct nfsd4_create_session *cses)
{
struct nfsd4_session *new, tmp;
struct nfsd4_slot *sp;