From patchwork Thu Feb 17 09:02:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mi Jinlong X-Patchwork-Id: 569551 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 p1H92J6w024961 for ; Thu, 17 Feb 2011 09:02:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752271Ab1BQJCQ (ORCPT ); Thu, 17 Feb 2011 04:02:16 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:59063 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752174Ab1BQJCP (ORCPT ); Thu, 17 Feb 2011 04:02:15 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id ECBF5170129; Thu, 17 Feb 2011 17:02:07 +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 p1H8uSvj004861; Thu, 17 Feb 2011 16:56:28 +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 2011021717011060-159602 ; Thu, 17 Feb 2011 17:01:10 +0800 Message-ID: <4D5CE432.10304@cn.fujitsu.com> Date: Thu, 17 Feb 2011 17:02:42 +0800 From: Mi Jinlong User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Chuck Lever CC: NFS , andros@netapp.com, bhalevy@panasas.com Subject: [PATCH] nfsd41: modify the members value of nfsd4_op_flags X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-02-17 17:01:10, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-02-17 17:01:10, Serialize complete at 2011-02-17 17:01:10 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]); Thu, 17 Feb 2011 09:02:36 +0000 (UTC) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index db52546..8605d38 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -983,9 +983,9 @@ static inline void nfsd4_increment_op_stats(u32 opnum) 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_WITHOUT_FH = 1 << 1, /* No current filehandle required */ + ALLOWED_ON_ABSENT_FS = 1 << 2, /* ops processed on absent fs */ + ALLOWED_AS_FIRST_OP = 1 << 3, /* ops reqired first in compound */ }; struct nfsd4_operation {