From: Julia Lawall Subject: question about fs/smbfs/request.c Date: Mon, 22 Feb 2010 08:15:04 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: linux-fsdevel@vger.kernel.org Return-path: Received: from mgw2.diku.dk ([130.225.96.92]:45001 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524Ab0BVHPG (ORCPT ); Mon, 22 Feb 2010 02:15:06 -0500 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id BEE7B19BBE4 for ; Mon, 22 Feb 2010 08:15:05 +0100 (CET) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08302-08 for ; Mon, 22 Feb 2010 08:15:04 +0100 (CET) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id 8069D19BBDF for ; Mon, 22 Feb 2010 08:15:04 +0100 (CET) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id 04C126DFD19 for ; Mon, 22 Feb 2010 08:09:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 6419E200AC for ; Mon, 22 Feb 2010 08:15:04 +0100 (CET) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The code below seems suspicious. Which definition of mdata is the right one? This is not intended as a proper patch. I can send a proper patch when I know what to do. julia diff -u -p a/fs/smbfs/request.c b/fs/smbfs/request.c --- a/fs/smbfs/request.c +++ b/fs/smbfs/request.c @@ -218,7 +218,6 @@ static int smb_setup_trans2request(struc * OS/2 is probably going to hate me for this ... */ mparam = SMB_TRANS2_MAX_PARAM; - mdata = req->rq_bufsize - mparam; mdata = server->opt.max_xmit - mparam - 100; if (mdata < 1024) {