summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs_nfs.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-06-09 01:10:14 +0200
committerTom Haynes <loghyr@primarydata.com>2015-02-03 20:06:35 +0100
commitc36aae9ad95afa2f9a9e9109d989c21af221fabd (patch)
tree60658de1393e59d61b66d143073faa17f92a6587 /fs/nfs/pnfs_nfs.c
parentpnfs: Add nfs_rpc_ops in calls to nfs_initiate_pgio (diff)
downloadlinux-c36aae9ad95afa2f9a9e9109d989c21af221fabd.tar.xz
linux-c36aae9ad95afa2f9a9e9109d989c21af221fabd.zip
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/pnfs_nfs.c')
-rw-r--r--fs/nfs/pnfs_nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs_nfs.c b/fs/nfs/pnfs_nfs.c
index 23c851d4c9a9..c87f664587ee 100644
--- a/fs/nfs/pnfs_nfs.c
+++ b/fs/nfs/pnfs_nfs.c
@@ -278,6 +278,7 @@ pnfs_generic_commit_pagelist(struct inode *inode, struct list_head *mds_pages,
if (!data->lseg) {
nfs_init_commit(data, mds_pages, NULL, cinfo);
nfs_initiate_commit(NFS_CLIENT(inode), data,
+ NFS_PROTO(data->inode),
data->mds_ops, how, 0);
} else {
struct pnfs_commit_bucket *buckets;