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