2010-11-04 17:17:04

by Boaz Harrosh

[permalink] [raw]
Subject: [PATCH] SQUASHME: pnfs-obj: bug in last conversion to embedded pnfs_layout_segment


The range field in pnfs_layout_segment is passed to io-engine's
objio_alloc_lseg but was never set properly.

Signed-off-by: Boaz Harrosh <[email protected]>
---
fs/nfs/objlayout/objlayout.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/objlayout/objlayout.c b/fs/nfs/objlayout/objlayout.c
index efe7984..332c832 100644
--- a/fs/nfs/objlayout/objlayout.c
+++ b/fs/nfs/objlayout/objlayout.c
@@ -102,6 +102,7 @@ objlayout_alloc_lseg(struct pnfs_layout_hdr *pnfslay,
pnfs_osd_layout = (struct pnfs_osd_layout *)objlseg->pnfs_osd_layout;
pnfs_osd_xdr_decode_layout(pnfs_osd_layout, layout);

+ objlseg->lseg.range = lgr->range;
status = objio_alloc_lseg(&objlseg->internal, pnfslay, &objlseg->lseg,
pnfs_osd_layout);
if (status)
--
1.7.2.3



2010-11-10 09:40:38

by Benny Halevy

[permalink] [raw]
Subject: Re: [PATCH] SQUASHME: pnfs-obj: bug in last conversion to embedded pnfs_layout_segment

Merged. Thanks!

On 2010-11-04 19:04, Boaz Harrosh wrote:
>
> The range field in pnfs_layout_segment is passed to io-engine's
> objio_alloc_lseg but was never set properly.
>
> Signed-off-by: Boaz Harrosh <[email protected]>
> ---
> fs/nfs/objlayout/objlayout.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fs/nfs/objlayout/objlayout.c b/fs/nfs/objlayout/objlayout.c
> index efe7984..332c832 100644
> --- a/fs/nfs/objlayout/objlayout.c
> +++ b/fs/nfs/objlayout/objlayout.c
> @@ -102,6 +102,7 @@ objlayout_alloc_lseg(struct pnfs_layout_hdr *pnfslay,
> pnfs_osd_layout = (struct pnfs_osd_layout *)objlseg->pnfs_osd_layout;
> pnfs_osd_xdr_decode_layout(pnfs_osd_layout, layout);
>
> + objlseg->lseg.range = lgr->range;
> status = objio_alloc_lseg(&objlseg->internal, pnfslay, &objlseg->lseg,
> pnfs_osd_layout);
> if (status)