mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
NFSD OFFLOAD_CANCEL xdr
Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
6308bc98e8
commit
885e2bf3ea
@ -1122,6 +1122,14 @@ nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static __be32
|
||||||
|
nfsd4_offload_cancel(struct svc_rqst *rqstp,
|
||||||
|
struct nfsd4_compound_state *cstate,
|
||||||
|
union nfsd4_op_u *u)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
||||||
struct nfsd4_fallocate *fallocate, int flags)
|
struct nfsd4_fallocate *fallocate, int flags)
|
||||||
@ -2480,6 +2488,12 @@ static const struct nfsd4_operation nfsd4_ops[] = {
|
|||||||
.op_name = "OP_OFFLOAD_STATUS",
|
.op_name = "OP_OFFLOAD_STATUS",
|
||||||
.op_rsize_bop = nfsd4_offload_status_rsize,
|
.op_rsize_bop = nfsd4_offload_status_rsize,
|
||||||
},
|
},
|
||||||
|
[OP_OFFLOAD_CANCEL] = {
|
||||||
|
.op_func = nfsd4_offload_cancel,
|
||||||
|
.op_flags = OP_MODIFIES_SOMETHING,
|
||||||
|
.op_name = "OP_OFFLOAD_CANCEL",
|
||||||
|
.op_rsize_bop = nfsd4_only_status_rsize,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1880,7 +1880,7 @@ static const nfsd4_dec nfsd4_dec_ops[] = {
|
|||||||
[OP_IO_ADVISE] = (nfsd4_dec)nfsd4_decode_notsupp,
|
[OP_IO_ADVISE] = (nfsd4_dec)nfsd4_decode_notsupp,
|
||||||
[OP_LAYOUTERROR] = (nfsd4_dec)nfsd4_decode_notsupp,
|
[OP_LAYOUTERROR] = (nfsd4_dec)nfsd4_decode_notsupp,
|
||||||
[OP_LAYOUTSTATS] = (nfsd4_dec)nfsd4_decode_notsupp,
|
[OP_LAYOUTSTATS] = (nfsd4_dec)nfsd4_decode_notsupp,
|
||||||
[OP_OFFLOAD_CANCEL] = (nfsd4_dec)nfsd4_decode_notsupp,
|
[OP_OFFLOAD_CANCEL] = (nfsd4_dec)nfsd4_decode_offload_status,
|
||||||
[OP_OFFLOAD_STATUS] = (nfsd4_dec)nfsd4_decode_offload_status,
|
[OP_OFFLOAD_STATUS] = (nfsd4_dec)nfsd4_decode_offload_status,
|
||||||
[OP_READ_PLUS] = (nfsd4_dec)nfsd4_decode_notsupp,
|
[OP_READ_PLUS] = (nfsd4_dec)nfsd4_decode_notsupp,
|
||||||
[OP_SEEK] = (nfsd4_dec)nfsd4_decode_seek,
|
[OP_SEEK] = (nfsd4_dec)nfsd4_decode_seek,
|
||||||
|
Loading…
Reference in New Issue
Block a user