aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-06-16 09:52:26 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-06-22 13:24:02 -0400
commit97dc135947181a6670949a480da56c3ebf8d3715 (patch)
tree2e5a766941516f8bbcec3b816901a76a45fc78c5 /fs/nfs/nfs4proc.c
parenta2118c33aad6c447ad5e0a60cfaea3939b52ce0a (diff)
NFSv41: Clean up the NFSv4.1 minor version specific operations
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index fc972c6f1ce9..a938daf333da 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -667,7 +667,7 @@ int _nfs4_call_sync(struct nfs_server *server,
667} 667}
668 668
669#define nfs4_call_sync(server, msg, args, res, cache_reply) \ 669#define nfs4_call_sync(server, msg, args, res, cache_reply) \
670 (server)->nfs_client->cl_call_sync((server), (msg), &(args)->seq_args, \ 670 (server)->nfs_client->cl_mvops->call_sync((server), (msg), &(args)->seq_args, \
671 &(res)->seq_res, (cache_reply)) 671 &(res)->seq_res, (cache_reply))
672 672
673static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo) 673static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo)
@@ -5353,6 +5353,18 @@ struct nfs4_state_maintenance_ops nfs41_state_renewal_ops = {
5353}; 5353};
5354#endif 5354#endif
5355 5355
5356static const struct nfs4_minor_version_ops nfs_v4_0_minor_ops = {
5357 .minor_version = 0,
5358 .call_sync = _nfs4_call_sync,
5359};
5360
5361#if defined(CONFIG_NFS_V4_1)
5362static const struct nfs4_minor_version_ops nfs_v4_1_minor_ops = {
5363 .minor_version = 1,
5364 .call_sync = _nfs4_call_sync_session,
5365};
5366#endif
5367
5356/* 5368/*
5357 * Per minor version reboot and network partition recovery ops 5369 * Per minor version reboot and network partition recovery ops
5358 */ 5370 */
@@ -5378,6 +5390,13 @@ struct nfs4_state_maintenance_ops *nfs4_state_renewal_ops[] = {
5378#endif 5390#endif
5379}; 5391};
5380 5392
5393const struct nfs4_minor_version_ops *nfs_v4_minor_ops[] = {
5394 [0] = &nfs_v4_0_minor_ops,
5395#if defined(CONFIG_NFS_V4_1)
5396 [1] = &nfs_v4_1_minor_ops,
5397#endif
5398};
5399
5381static const struct inode_operations nfs4_file_inode_operations = { 5400static const struct inode_operations nfs4_file_inode_operations = {
5382 .permission = nfs_permission, 5401 .permission = nfs_permission,
5383 .getattr = nfs_getattr, 5402 .getattr = nfs_getattr,