[pnfs] [PATCH 1/3] panlayout: remove PNFS_ISSYNC
Benny Halevy
bhalevy at panasas.com
Wed Mar 19 14:22:19 EDT 2008
patch applied onto the panlayout branch.
Thanks!
Benny
On Mar. 19, 2008, 18:03 +0200, Fred Isaman <iisaman at citi.umich.edu> wrote:
> PNFS_ISSYNC is no longer used, so remove references to it
>
> Signed-off-by: Fred Isaman <iisaman at citi.umich.edu>
> ---
> fs/nfs/panlayout/panlayout.c | 12 ++++--------
> 1 files changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/fs/nfs/panlayout/panlayout.c b/fs/nfs/panlayout/panlayout.c
> index a777cb5..40684d5 100644
> --- a/fs/nfs/panlayout/panlayout.c
> +++ b/fs/nfs/panlayout/panlayout.c
> @@ -201,8 +201,7 @@ panlayout_read_done(struct panlayout_io_state *state)
> panlayout_iodone(state);
> /* must not use state after this point */
>
> - if (!(rdata->pnfsflags & PNFS_ISSYNC))
> - pnfs_client_ops->nfs_readlist_complete(rdata);
> + pnfs_client_ops->nfs_readlist_complete(rdata);
> }
>
> static inline u64
> @@ -276,8 +275,7 @@ panlayout_read_pagelist(struct pnfs_layout_type *pnfs_layout_type,
> state->eof = offset + count >= eof;
>
> status = panfs_shim_read_pagelist(state, pages, pgbase,
> - nr_pages, offset, count,
> - rdata->pnfsflags & PNFS_ISSYNC);
> + nr_pages, offset, count, 0);
> out:
> dprintk("%s: Return status %Zd\n", __func__, status);
> return status;
> @@ -307,8 +305,7 @@ panlayout_write_done(struct panlayout_io_state *state)
> panlayout_iodone(state);
> /* must not use state after this point */
>
> - if (!(wdata->pnfsflags & PNFS_ISSYNC))
> - pnfs_client_ops->nfs_writelist_complete(wdata);
> + pnfs_client_ops->nfs_writelist_complete(wdata);
> }
>
> /*
> @@ -348,8 +345,7 @@ panlayout_write_pagelist(struct pnfs_layout_type *pnfs_layout_type,
> state->rpcdata = wdata;
>
> status = panfs_shim_write_pagelist(state, pages, pgbase,
> - nr_pages, offset, count,
> - wdata->pnfsflags & PNFS_ISSYNC,
> + nr_pages, offset, count, 0,
> stable);
> out:
> dprintk("%s: Return status %Zd\n", __func__, status);
More information about the pNFS
mailing list