linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]spnfs-block: reserve space error in bl_encode_stripe
@ 2013-03-11 11:53 fanchaoting
  2013-03-25  9:40 ` Benny Halevy
  0 siblings, 1 reply; 2+ messages in thread
From: fanchaoting @ 2013-03-11 11:53 UTC (permalink / raw)
  To: bhalevy; +Cc: linux-nfs@vger.kernel.org

 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH]spnfs-block: reserve space error in bl_encode_stripe
  2013-03-11 11:53 [PATCH]spnfs-block: reserve space error in bl_encode_stripe fanchaoting
@ 2013-03-25  9:40 ` Benny Halevy
  0 siblings, 0 replies; 2+ messages in thread
From: Benny Halevy @ 2013-03-25  9:40 UTC (permalink / raw)
  To: fanchaoting; +Cc: linux-nfs@vger.kernel.org

On 2013-03-11 13:53, fanchaoting wrote:
>  when useing spnfs-block, reserve space error in bl_encode_stripe.
> 
>  Signed-off-by: fanchaoting<fanchaoting@cn.fujitsu.com>

Good catch!
This patch did not apply cleanly on my latest pnfsd-block branch.
Please rebase onto the newest branch and send an up-to-date patch next time.

Merged into git://linux-nfs.org/~bhalevy/linux-pnfs.git pnfsd-block

Thanks,

Benny

> ---
>  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
> 
> --
> 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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-25  9:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 11:53 [PATCH]spnfs-block: reserve space error in bl_encode_stripe fanchaoting
2013-03-25  9:40 ` Benny Halevy

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).