]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'master' into devel and apply fixup from Stephen Rothwell:
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 25 Jul 2011 17:59:46 +0000 (13:59 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 25 Jul 2011 18:53:52 +0000 (14:53 -0400)
vfs/nfs: fixup for nfs_open_context change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1  2 
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c
fs/nfs/pagelist.c
fs/nfs/read.c
fs/nfs/write.c
net/sunrpc/clnt.c

Simple merge
Simple merge
Simple merge
Simple merge
diff --cc fs/nfs/read.c
index 7cba2280e2b87ae7bb85de616fbfed4e2af1f168,a68679f538fc34fb778c5bee50337ef228083e1b..2171c043ab080a13803b95c59363eab9db1533c5
@@@ -217,10 -202,12 +217,10 @@@ EXPORT_SYMBOL_GPL(nfs_initiate_read)
  /*
   * Set up the NFS read request struct
   */
 -static int nfs_read_rpcsetup(struct nfs_page *req, struct nfs_read_data *data,
 -              const struct rpc_call_ops *call_ops,
 -              unsigned int count, unsigned int offset,
 -              struct pnfs_layout_segment *lseg)
 +static void nfs_read_rpcsetup(struct nfs_page *req, struct nfs_read_data *data,
 +              unsigned int count, unsigned int offset)
  {
-       struct inode *inode = req->wb_context->path.dentry->d_inode;
+       struct inode *inode = req->wb_context->dentry->d_inode;
  
        data->req         = req;
        data->inode       = inode;
        data->res.count   = count;
        data->res.eof     = 0;
        nfs_fattr_init(&data->fattr);
 +}
  
 -      if (data->lseg &&
 -          (pnfs_try_to_read_data(data, call_ops) == PNFS_ATTEMPTED))
 -              return 0;
 +static int nfs_do_read(struct nfs_read_data *data,
 +              const struct rpc_call_ops *call_ops)
 +{
-       struct inode *inode = data->args.context->path.dentry->d_inode;
++      struct inode *inode = data->args.context->dentry->d_inode;
  
        return nfs_initiate_read(data, NFS_CLIENT(inode), call_ops);
  }
diff --cc fs/nfs/write.c
index 9fba5270b1a830323c451521a16d03ac4f648717,08579312c57bfd7d67dd1f768c3753d8db258ab4..ebed5183f420230f1fa15c95662d362a2296742d
@@@ -845,19 -845,22 +845,19 @@@ EXPORT_SYMBOL_GPL(nfs_initiate_write)
  /*
   * Set up the argument/result storage required for the RPC call.
   */
 -static int nfs_write_rpcsetup(struct nfs_page *req,
 +static void nfs_write_rpcsetup(struct nfs_page *req,
                struct nfs_write_data *data,
 -              const struct rpc_call_ops *call_ops,
                unsigned int count, unsigned int offset,
 -              struct pnfs_layout_segment *lseg,
                int how)
  {
-       struct inode *inode = req->wb_context->path.dentry->d_inode;
+       struct inode *inode = req->wb_context->dentry->d_inode;
  
        /* Set up the RPC argument and reply structs
         * NB: take care not to mess about with data->commit et al. */
  
        data->req = req;
-       data->inode = inode = req->wb_context->path.dentry->d_inode;
+       data->inode = inode = req->wb_context->dentry->d_inode;
        data->cred = req->wb_context->cred;
 -      data->lseg = get_lseg(lseg);
  
        data->args.fh     = NFS_FH(inode);
        data->args.offset = req_offset(req) + offset;
        data->res.count   = count;
        data->res.verf    = &data->verf;
        nfs_fattr_init(&data->fattr);
 +}
  
 -      if (data->lseg &&
 -          (pnfs_try_to_write_data(data, call_ops, how) == PNFS_ATTEMPTED))
 -              return 0;
 +static int nfs_do_write(struct nfs_write_data *data,
 +              const struct rpc_call_ops *call_ops,
 +              int how)
 +{
-       struct inode *inode = data->args.context->path.dentry->d_inode;
++      struct inode *inode = data->args.context->dentry->d_inode;
  
        return nfs_initiate_write(data, NFS_CLIENT(inode), call_ops, how);
  }
Simple merge