From patchwork Mon Mar 11 11:53:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fanchaoting X-Patchwork-Id: 2248471 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D37DE3FC8F for ; Mon, 11 Mar 2013 11:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754034Ab3CKLxO (ORCPT ); Mon, 11 Mar 2013 07:53:14 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:57090 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753886Ab3CKLxM (ORCPT ); Mon, 11 Mar 2013 07:53:12 -0400 X-IronPort-AV: E=Sophos;i="4.84,822,1355068800"; d="scan'208";a="6851628" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 11 Mar 2013 19:50:43 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r2BBr9F0009289; Mon, 11 Mar 2013 19:53:09 +0800 Received: from [127.0.0.1] ([10.167.233.142]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013031119515772-760730 ; Mon, 11 Mar 2013 19:51:57 +0800 Message-ID: <513DC5BE.9000103@cn.fujitsu.com> Date: Mon, 11 Mar 2013 19:53:34 +0800 From: fanchaoting User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: bhalevy@tonian.com CC: "linux-nfs@vger.kernel.org" Subject: [PATCH]spnfs-block: reserve space error in bl_encode_stripe X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/11 19:51:57, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/11 19:51:58, Serialize complete at 2013/03/11 19:51:58 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org when useing spnfs-block, reserve space error in bl_encode_stripe. Signed-off-by: fanchaoting --- fs/exportfs/nfs4blocklayoutxdr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/exportfs/nfs4blocklayoutxdr.c b/fs/exportfs/nfs4blocklayoutxdr.c index 439e647..c942d34 100644 --- a/fs/exportfs/nfs4blocklayoutxdr.c +++ b/fs/exportfs/nfs4blocklayoutxdr.c @@ -53,7 +53,7 @@ static int bl_encode_stripe(struct exp_xdr_stream *xdr, pnfs_blocklayout_devinfo_t *bld) { int i; - __be32 *p = exp_xdr_reserve_space(xdr, + __be32 *p = exp_xdr_reserve_qwords(xdr, 2 + 1 + bld->u.stripe.bld_stripes); p = exp_xdr_encode_u64(p, bld->u.stripe.bld_chunk_size);