diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-03-15 11:35:11 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-03-31 16:46:38 -0400 |
commit | beaca2347f1b7986376e3906dfa7615a9d6f53d8 (patch) | |
tree | dbf0f4953e706efdaf2d877e3206e899c06a144d /fs/nfsd | |
parent | b77a4b2edb29459ad039a1d8f5769bb2192acae1 (diff) |
NFSD: Use correct reply size calculating function
ALLOCATE/DEALLOCATE only reply one status value to client,
so, using nfsd4_only_status_rsize for reply size calculating.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 92b9d97aff4f..4449359fffa2 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -2282,13 +2282,13 @@ static struct nfsd4_operation nfsd4_ops[] = { | |||
2282 | .op_func = (nfsd4op_func)nfsd4_allocate, | 2282 | .op_func = (nfsd4op_func)nfsd4_allocate, |
2283 | .op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME, | 2283 | .op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME, |
2284 | .op_name = "OP_ALLOCATE", | 2284 | .op_name = "OP_ALLOCATE", |
2285 | .op_rsize_bop = (nfsd4op_rsize)nfsd4_write_rsize, | 2285 | .op_rsize_bop = (nfsd4op_rsize)nfsd4_only_status_rsize, |
2286 | }, | 2286 | }, |
2287 | [OP_DEALLOCATE] = { | 2287 | [OP_DEALLOCATE] = { |
2288 | .op_func = (nfsd4op_func)nfsd4_deallocate, | 2288 | .op_func = (nfsd4op_func)nfsd4_deallocate, |
2289 | .op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME, | 2289 | .op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME, |
2290 | .op_name = "OP_DEALLOCATE", | 2290 | .op_name = "OP_DEALLOCATE", |
2291 | .op_rsize_bop = (nfsd4op_rsize)nfsd4_write_rsize, | 2291 | .op_rsize_bop = (nfsd4op_rsize)nfsd4_only_status_rsize, |
2292 | }, | 2292 | }, |
2293 | [OP_SEEK] = { | 2293 | [OP_SEEK] = { |
2294 | .op_func = (nfsd4op_func)nfsd4_seek, | 2294 | .op_func = (nfsd4op_func)nfsd4_seek, |