|
30 | 30 | (2 + 2 + 3 + 3 + 3 + 3 + 3) * 4) |
31 | 31 | #define CB_OP_RECALL_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
32 | 32 |
|
33 | | -#if defined(CONFIG_NFS_V4_1) |
34 | 33 | #define CB_OP_LAYOUTRECALL_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
35 | 34 | #define CB_OP_DEVICENOTIFY_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
36 | 35 | #define CB_OP_SEQUENCE_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ + \ |
|
39 | 38 | #define CB_OP_RECALLANY_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
40 | 39 | #define CB_OP_RECALLSLOT_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
41 | 40 | #define CB_OP_NOTIFY_LOCK_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
42 | | -#endif /* CONFIG_NFS_V4_1 */ |
43 | 41 | #ifdef CONFIG_NFS_V4_2 |
44 | 42 | #define CB_OP_OFFLOAD_RES_MAXSZ (CB_OP_HDR_RES_MAXSZ) |
45 | 43 | #endif /* CONFIG_NFS_V4_2 */ |
@@ -205,7 +203,6 @@ static __be32 decode_recall_args(struct svc_rqst *rqstp, |
205 | 203 | return decode_fh(xdr, &args->fh); |
206 | 204 | } |
207 | 205 |
|
208 | | -#if defined(CONFIG_NFS_V4_1) |
209 | 206 | static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) |
210 | 207 | { |
211 | 208 | stateid->type = NFS4_LAYOUT_STATEID_TYPE; |
@@ -521,7 +518,6 @@ static __be32 decode_notify_lock_args(struct svc_rqst *rqstp, |
521 | 518 | return decode_lockowner(xdr, args); |
522 | 519 | } |
523 | 520 |
|
524 | | -#endif /* CONFIG_NFS_V4_1 */ |
525 | 521 | #ifdef CONFIG_NFS_V4_2 |
526 | 522 | static __be32 decode_write_response(struct xdr_stream *xdr, |
527 | 523 | struct cb_offloadargs *args) |
@@ -747,8 +743,6 @@ static __be32 encode_getattr_res(struct svc_rqst *rqstp, struct xdr_stream *xdr, |
747 | 743 | return status; |
748 | 744 | } |
749 | 745 |
|
750 | | -#if defined(CONFIG_NFS_V4_1) |
751 | | - |
752 | 746 | static __be32 encode_sessionid(struct xdr_stream *xdr, |
753 | 747 | const struct nfs4_sessionid *sid) |
754 | 748 | { |
@@ -846,19 +840,6 @@ static void nfs4_cb_free_slot(struct cb_process_state *cps) |
846 | 840 | } |
847 | 841 | } |
848 | 842 |
|
849 | | -#else /* CONFIG_NFS_V4_1 */ |
850 | | - |
851 | | -static __be32 |
852 | | -preprocess_nfs41_op(int nop, unsigned int op_nr, struct callback_op **op) |
853 | | -{ |
854 | | - return htonl(NFS4ERR_MINOR_VERS_MISMATCH); |
855 | | -} |
856 | | - |
857 | | -static void nfs4_cb_free_slot(struct cb_process_state *cps) |
858 | | -{ |
859 | | -} |
860 | | -#endif /* CONFIG_NFS_V4_1 */ |
861 | | - |
862 | 843 | #ifdef CONFIG_NFS_V4_2 |
863 | 844 | static __be32 |
864 | 845 | preprocess_nfs42_op(int nop, unsigned int op_nr, struct callback_op **op) |
@@ -1051,7 +1032,6 @@ static struct callback_op callback_ops[] = { |
1051 | 1032 | .decode_args = decode_recall_args, |
1052 | 1033 | .res_maxsize = CB_OP_RECALL_RES_MAXSZ, |
1053 | 1034 | }, |
1054 | | -#if defined(CONFIG_NFS_V4_1) |
1055 | 1035 | [OP_CB_LAYOUTRECALL] = { |
1056 | 1036 | .process_op = nfs4_callback_layoutrecall, |
1057 | 1037 | .decode_args = decode_layoutrecall_args, |
@@ -1083,7 +1063,6 @@ static struct callback_op callback_ops[] = { |
1083 | 1063 | .decode_args = decode_notify_lock_args, |
1084 | 1064 | .res_maxsize = CB_OP_NOTIFY_LOCK_RES_MAXSZ, |
1085 | 1065 | }, |
1086 | | -#endif /* CONFIG_NFS_V4_1 */ |
1087 | 1066 | #ifdef CONFIG_NFS_V4_2 |
1088 | 1067 | [OP_CB_OFFLOAD] = { |
1089 | 1068 | .process_op = nfs4_callback_offload, |
|
0 commit comments