diff options
author | Peng Tao <tao.peng@primarydata.com> | 2014-06-09 07:10:14 +0800 |
---|---|---|
committer | Tom Haynes <loghyr@primarydata.com> | 2015-02-03 11:06:35 -0800 |
commit | c36aae9ad95afa2f9a9e9109d989c21af221fabd (patch) | |
tree | 60658de1393e59d61b66d143073faa17f92a6587 /fs/nfs/filelayout | |
parent | abde71f4d3c027a30f8d725e1e22001313b4481a (diff) | |
download | op-kernel-dev-c36aae9ad95afa2f9a9e9109d989c21af221fabd.zip op-kernel-dev-c36aae9ad95afa2f9a9e9109d989c21af221fabd.tar.gz |
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')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index 25c4896..e5a3c5b 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) fh = select_ds_fh_from_commit(lseg, data->ds_commit_index); if (fh) data->args.fh = fh; - return nfs_initiate_commit(ds_clnt, data, + return nfs_initiate_commit(ds_clnt, data, NFS_PROTO(data->inode), &filelayout_commit_call_ops, how, RPC_TASK_SOFTCONN); out_err: |