From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbWDCFXi (ORCPT ); Mon, 3 Apr 2006 01:23:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964848AbWDCFUo (ORCPT ); Mon, 3 Apr 2006 01:20:44 -0400 Received: from ns2.suse.de ([195.135.220.15]:37276 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S964844AbWDCFU2 (ORCPT ); Mon, 3 Apr 2006 01:20:28 -0400 From: NeilBrown To: Andrew Morton Date: Mon, 3 Apr 2006 15:18:41 +1000 Message-Id: <1060403051841.1809@suse.de> X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Since nfsd_setuser() is already called from any operation that uses the current filehandle (because it's called from fh_verify), there's no reason to call it from putrootfh. Signed-off-by: Andy Adamson Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown ### Diffstat output ./fs/nfsd/nfs4proc.c | 2 -- 1 file changed, 2 deletions(-) diff ./fs/nfsd/nfs4proc.c~current~ ./fs/nfsd/nfs4proc.c --- ./fs/nfsd/nfs4proc.c~current~ 2006-04-03 15:12:10.000000000 +1000 +++ ./fs/nfsd/nfs4proc.c 2006-04-03 15:12:10.000000000 +1000 @@ -288,8 +288,6 @@ nfsd4_putrootfh(struct svc_rqst *rqstp, 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; }