[pnfs] [PATCH 1/1] nfs41: declare read and write validate for direct io

Andy Adamson andros at netapp.com
Mon Jul 28 09:13:23 EDT 2008


On Sun, 2008-07-27 at 16:32 +0300, Benny Halevy wrote:
> On Sun, 27 Jul 2008 16:14:40 +0300 Benny Halevy <bhalevy at panasas.com> wrote:
> > You're right, thanks.
> > I've already fixed that in my private nfs41 branch
> > (as part of the "nfs41: Support sessions with O_DIRECT."
> > patch)
> 
> One note, I've done practically the same thing, just
> without the #if def...

OK. But why not the ifdef?

-->Andy

> 
> Benny
> 
> > 
> > I'll release it to the public git repo today.
> > 
> > Benny
> > 
> > On Fri, 25 Jul 2008 18:40:50 -0400 andros at netapp.com wrote:
> > > From: Andy Adamson <andros at netapp.com>
> > > 
> > > Signed-off-by: Andy Adamson<andros at netapp.com>
> > > ---
> > >  fs/nfs/internal.h |    7 +++++++
> > >  1 files changed, 7 insertions(+), 0 deletions(-)
> > > 
> > > diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
> > > index b384482..ccabcf6 100644
> > > --- a/fs/nfs/internal.h
> > > +++ b/fs/nfs/internal.h
> > > @@ -181,6 +181,13 @@ extern struct dentry *nfs4_get_root(struct super_block *, struct nfs_fh *);
> > >  extern int nfs4_path_walk(struct nfs_server *server,
> > >  			  struct nfs_fh *mntfh,
> > >  			  const char *path);
> > > +#ifdef CONFIG_NFS_V4_1
> > > +/* read.c */
> > > +int nfs_read_validate(struct rpc_task *task, void *calldata);
> > > +
> > > +/* write.c */
> > > +int nfs_write_validate(struct rpc_task *task, void *calldata);
> > > +#endif /* CONFIG_NFS_V4_1 */
> > >  #endif
> > >  
> > >  /*
> > _______________________________________________
> > pNFS mailing list
> > pNFS at linux-nfs.org
> > http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs


More information about the pNFS mailing list