diff options
| author | Kinglong Mee <kinglongmee@gmail.com> | 2017-02-03 22:36:00 +0800 |
|---|---|---|
| committer | J. Bruce Fields <bfields@redhat.com> | 2017-02-17 16:26:03 -0500 |
| commit | 2282cd2c05e281120dedc665a8a6a24053c44662 (patch) | |
| tree | c6439c2171f7ea6d54c8e7ca2461fcf8347289de /scripts/stackusage | |
| parent | nfsd/callback: Drop a useless data copy when comparing sessionid (diff) | |
| download | linux-2282cd2c05e281120dedc665a8a6a24053c44662.tar.gz linux-2282cd2c05e281120dedc665a8a6a24053c44662.zip | |
NFSD: Get response size before operation for all RPCs
NFSD usess PAGE_SIZE as the reply size estimate for RPCs which don't
support op_rsize_bop(), A PAGE_SIZE (4096) is larger than many real
response sizes, eg, access (op_encode_hdr_size + 2), seek
(op_encode_hdr_size + 3).
This patch just adds op_rsize_bop() for all RPCs getting response size.
An overestimate is generally safe but the tighter estimates are probably
better.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
