aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/filelayout/filelayout.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-06-08 19:10:14 -0400
committerTom Haynes <loghyr@primarydata.com>2015-02-03 14:06:35 -0500
commitc36aae9ad95afa2f9a9e9109d989c21af221fabd (patch)
tree60658de1393e59d61b66d143073faa17f92a6587 /fs/nfs/filelayout/filelayout.c
parentabde71f4d3c027a30f8d725e1e22001313b4481a (diff)
nfs: allow different protocol in nfs_initiate_commit
pnfs flexfile layout client may want to use NFSv3 ops rather than the default MDS v4 ops. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/filelayout/filelayout.c')
-rw-r--r--fs/nfs/filelayout/filelayout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c
index 25c4896887ca..e5a3c5b1398f 100644
--- a/fs/nfs/filelayout/filelayout.c
+++ b/fs/nfs/filelayout/filelayout.c
@@ -1055,7 +1055,7 @@ static int filelayout_initiate_commit(struct nfs_commit_data *data, int how)
1055 fh = select_ds_fh_from_commit(lseg, data->ds_commit_index); 1055 fh = select_ds_fh_from_commit(lseg, data->ds_commit_index);
1056 if (fh) 1056 if (fh)
1057 data->args.fh = fh; 1057 data->args.fh = fh;
1058 return nfs_initiate_commit(ds_clnt, data, 1058 return nfs_initiate_commit(ds_clnt, data, NFS_PROTO(data->inode),
1059 &filelayout_commit_call_ops, how, 1059 &filelayout_commit_call_ops, how,
1060 RPC_TASK_SOFTCONN); 1060 RPC_TASK_SOFTCONN);
1061out_err: 1061out_err: