From patchwork Fri Feb 18 01:09:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mi Jinlong X-Patchwork-Id: 572691 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1I1A10I019644 for ; Fri, 18 Feb 2011 01:10:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758157Ab1BRBJr (ORCPT ); Thu, 17 Feb 2011 20:09:47 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:59622 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1758166Ab1BRBJq (ORCPT ); Thu, 17 Feb 2011 20:09:46 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id E72A117003F; Fri, 18 Feb 2011 09:09:43 +0800 (CST) Received: from mailserver.fnst.cn.fujitus.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id p1I142EH020079; Fri, 18 Feb 2011 09:04:03 +0800 Received: from [127.0.0.1] ([10.167.225.24]) by mailserver.fnst.cn.fujitus.com (Lotus Domino Release 8.5.1FP4) with ESMTP id 2011021809084531-164914 ; Fri, 18 Feb 2011 09:08:45 +0800 Message-ID: <4D5DC6E2.5070307@cn.fujitsu.com> Date: Fri, 18 Feb 2011 09:09:54 +0800 From: Mi Jinlong User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Benny Halevy , "J. Bruce Fields" CC: Chuck Lever , NFS , andros@netapp.com Subject: Re: [PATCH] nfsd41: modify the members value of nfsd4_op_flags References: <4D5CE432.10304@cn.fujitsu.com> <4D5D259B.9040605@panasas.com> In-Reply-To: <4D5D259B.9040605@panasas.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-02-18 09:08:45, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-02-18 09:08:46, Serialize complete at 2011-02-18 09:08:46 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 18 Feb 2011 01:10:17 +0000 (UTC) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index db52546..5fcb139 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -984,8 +984,8 @@ typedef __be32(*nfsd4op_func)(struct svc_rqst *, struct nfsd4_compound_state *, void *); enum nfsd4_op_flags { ALLOWED_WITHOUT_FH = 1 << 0, /* No current filehandle required */ - ALLOWED_ON_ABSENT_FS = 2 << 0, /* ops processed on absent fs */ - ALLOWED_AS_FIRST_OP = 3 << 0, /* ops reqired first in compound */ + ALLOWED_ON_ABSENT_FS = 1 << 1, /* ops processed on absent fs */ + ALLOWED_AS_FIRST_OP = 1 << 2, /* ops reqired first in compound */ }; struct nfsd4_operation {