On Thu, 30 Jun 2011 16:18:40 -0700, "Venkateswararao Jujjuri (JV)" <jvrao@xxxxxxxxxxxxxxxxxx> wrote: > msize represents the maximum PDU size that includes P9_IOHDRSZ. > > Signed-off-by: Venkateswararao Jujjuri "<jvrao@xxxxxxxxxxxxxxxxxx> > --- > net/9p/client.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/9p/client.c b/net/9p/client.c > index 9e3b0e6..1b89351 100644 > --- a/net/9p/client.c > +++ b/net/9p/client.c > @@ -821,8 +821,8 @@ struct p9_client *p9_client_create(const char *dev_name, char *options) > if (err) > goto destroy_fidpool; > > - if ((clnt->msize+P9_IOHDRSZ) > clnt->trans_mod->maxsize) > - clnt->msize = clnt->trans_mod->maxsize-P9_IOHDRSZ; > + if (clnt->msize > clnt->trans_mod->maxsize) > + clnt->msize = clnt->trans_mod->maxsize; > > err = p9_client_version(clnt); > if (err) Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> -aneesh -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html