mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
net/9p: Adjust maximum MSIZE to account for p9 header
Add maximum p9 header size to MSIZE to make sure we can have page aligned data. Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org> Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
This commit is contained in:
parent
88603b6dc4
commit
2a03472262
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@
|
|||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/9p.h>
|
||||
|
||||
#define DEFAULT_MSIZE (128 * 1024)
|
||||
/* DEFAULT MSIZE = 32 pages worth of payload + P9_HDRSZ +
|
||||
* room for write (16 extra) or read (11 extra) operands.
|
||||
*/
|
||||
|
||||
#define DEFAULT_MSIZE ((128 * 1024) + P9_IOHDRSZ)
|
||||
|
||||
/* Client Option Parsing (code inspired by NFS code)
|
||||
* - a little lazy - parse all client options
|
||||
|
|
Loading…
Reference in a new issue