X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fnfsd%2Fnfs4proc.c;fp=fs%2Fnfsd%2Fnfs4proc.c;h=ca8a4c410de338e8935073d21d724a6cd67a2627;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=ee4eff27aedc80d9faac58a7dc208929551d36ef;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index ee4eff27a..ca8a4c410 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -288,6 +288,8 @@ nfsd4_putrootfh(struct svc_rqst *rqstp, struct svc_fh *current_fh) fh_put(current_fh); status = exp_pseudoroot(rqstp->rq_client, current_fh, &rqstp->rq_chandle); + if (!status) + status = nfserrno(nfsd_setuser(rqstp, current_fh->fh_export)); return status; } @@ -721,12 +723,6 @@ nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) return nfs_ok; } -static inline void nfsd4_increment_op_stats(u32 opnum) -{ - if (opnum >= FIRST_NFS4_OP && opnum <= LAST_NFS4_OP) - nfsdstats.nfs4_opcount[opnum]++; -} - /* * COMPOUND call. @@ -936,8 +932,6 @@ encode_op: /* XXX Ugh, we need to get rid of this kind of special case: */ if (op->opnum == OP_READ && op->u.read.rd_filp) fput(op->u.read.rd_filp); - - nfsd4_increment_op_stats(op->opnum); } out: