lkml.org 
[lkml]   [2022]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/6] Adjust maximum MSIZE to account for p9 header
Date
Add maximum p9 header size to MSIZE to make sure we can
have page aligned data.

Signed-off-by: Eric Van Hensbergen <evanhensbergen@icloud.com>
---
net/9p/client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/9p/client.c b/net/9p/client.c
index fef6516a0639..416baf2f1edf 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -28,7 +28,7 @@
#define CREATE_TRACE_POINTS
#include <trace/events/9p.h>

-#define DEFAULT_MSIZE (128 * 1024)
+#define DEFAULT_MSIZE ((128 * 1024) + P9_HDRSZ)

/* Client Option Parsing (code inspired by NFS code)
* - a little lazy - parse all client options
--
2.37.2
\
 
 \ /
  Last update: 2022-12-17 20:07    [W:0.193 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site