From: fanchaoting <fanchaoting@cn.fujitsu.com>
To: bhalevy@tonian.com
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: [PATCH]spnfs-block: reserve space error in bl_encode_stripe
Date: Mon, 11 Mar 2013 19:53:34 +0800 [thread overview]
Message-ID: <513DC5BE.9000103@cn.fujitsu.com> (raw)
when useing spnfs-block, reserve space error in bl_encode_stripe.
Signed-off-by: fanchaoting<fanchaoting@cn.fujitsu.com>
---
fs/exportfs/nfs4blocklayoutxdr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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);
--
1.7.1
next reply other threads:[~2013-03-11 11:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 11:53 fanchaoting [this message]
2013-03-25 9:40 ` [PATCH]spnfs-block: reserve space error in bl_encode_stripe Benny Halevy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=513DC5BE.9000103@cn.fujitsu.com \
--to=fanchaoting@cn.fujitsu.com \
--cc=bhalevy@tonian.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).