aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-06-16 09:52:27 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-06-22 13:24:02 -0400
commitc48f4f3541e67881c9eb7c46e052f5ece48ef530 (patch)
tree99e99c9ebff6dcf9da430b9e1654582138a2b1de /fs/nfs/nfs4proc.c
parent97dc135947181a6670949a480da56c3ebf8d3715 (diff)
NFSv41: Convert the various reboot recovery ops etc to minor version ops
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index a938daf333da..9f222f57e75b 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5356,40 +5356,21 @@ struct nfs4_state_maintenance_ops nfs41_state_renewal_ops = {
5356static const struct nfs4_minor_version_ops nfs_v4_0_minor_ops = { 5356static const struct nfs4_minor_version_ops nfs_v4_0_minor_ops = {
5357 .minor_version = 0, 5357 .minor_version = 0,
5358 .call_sync = _nfs4_call_sync, 5358 .call_sync = _nfs4_call_sync,
5359 .reboot_recovery_ops = &nfs40_reboot_recovery_ops,
5360 .nograce_recovery_ops = &nfs40_nograce_recovery_ops,
5361 .state_renewal_ops = &nfs40_state_renewal_ops,
5359}; 5362};
5360 5363
5361#if defined(CONFIG_NFS_V4_1) 5364#if defined(CONFIG_NFS_V4_1)
5362static const struct nfs4_minor_version_ops nfs_v4_1_minor_ops = { 5365static const struct nfs4_minor_version_ops nfs_v4_1_minor_ops = {
5363 .minor_version = 1, 5366 .minor_version = 1,
5364 .call_sync = _nfs4_call_sync_session, 5367 .call_sync = _nfs4_call_sync_session,
5368 .reboot_recovery_ops = &nfs41_reboot_recovery_ops,
5369 .nograce_recovery_ops = &nfs41_nograce_recovery_ops,
5370 .state_renewal_ops = &nfs41_state_renewal_ops,
5365}; 5371};
5366#endif 5372#endif
5367 5373
5368/*
5369 * Per minor version reboot and network partition recovery ops
5370 */
5371
5372struct nfs4_state_recovery_ops *nfs4_reboot_recovery_ops[] = {
5373 &nfs40_reboot_recovery_ops,
5374#if defined(CONFIG_NFS_V4_1)
5375 &nfs41_reboot_recovery_ops,
5376#endif
5377};
5378
5379struct nfs4_state_recovery_ops *nfs4_nograce_recovery_ops[] = {
5380 &nfs40_nograce_recovery_ops,
5381#if defined(CONFIG_NFS_V4_1)
5382 &nfs41_nograce_recovery_ops,
5383#endif
5384};
5385
5386struct nfs4_state_maintenance_ops *nfs4_state_renewal_ops[] = {
5387 &nfs40_state_renewal_ops,
5388#if defined(CONFIG_NFS_V4_1)
5389 &nfs41_state_renewal_ops,
5390#endif
5391};
5392
5393const struct nfs4_minor_version_ops *nfs_v4_minor_ops[] = { 5374const struct nfs4_minor_version_ops *nfs_v4_minor_ops[] = {
5394 [0] = &nfs_v4_0_minor_ops, 5375 [0] = &nfs_v4_0_minor_ops,
5395#if defined(CONFIG_NFS_V4_1) 5376#if defined(CONFIG_NFS_V4_1)