aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-02-03 22:36:00 +0800
committerJ. Bruce Fields <bfields@redhat.com>2017-02-17 16:26:03 -0500
commit2282cd2c05e281120dedc665a8a6a24053c44662 (patch)
treec6439c2171f7ea6d54c8e7ca2461fcf8347289de /lib/memory-notifier-error-inject.c
parent827433801c3bcf21296915c42c1314fbb944b197 (diff)
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 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions