From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2306033ADBF for ; Thu, 22 Jan 2026 06:04:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769061848; cv=none; b=fPaF4mPRtelCHjsncXMSeLK/0eJR3oL8K5DSiRmJTDMiUwbFwLY3nVF+ysGP9C8q2uoOsbfkQuAD7q9VCH9oeb/kVm7yQvj6Y1DP4eZo7K0x8JBGyFO5KSOPGPz9SQFu85/sqQD1rE21KG+zuWu286ojeLkhbZbpdHV6hRMWVBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769061848; c=relaxed/simple; bh=qL/6fhBAIeZg7aAiyzwJ0h1lBqVBWusJUvD+4Ey7hsE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iZz12ThCmiBoOFL0L7hdIlsb60R5P9YOUHV5Pq7+MCJZ4v79+QZpb55ZaiontkgIcFniuW1eDmEqFcfhVb5zkCNtLejkK61wajWbPyZg5H6ZTQOuiKJY2sC7CEcHClWmGuOQVoPyafLloarmQKtsTumnY/ufvV2xLIINh9jg+14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 1DA21227AA8; Thu, 22 Jan 2026 07:04:01 +0100 (CET) Date: Thu, 22 Jan 2026 07:04:00 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Jens Axboe , Christian Brauner , Carlos Maiolino , "Martin K. Petersen" , Anuj Gupta , Kanchan Joshi , linux-block@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH 07/15] block: pass a maxlen argument to bio_iov_iter_bounce Message-ID: <20260122060400.GD24006@lst.de> References: <20260121064339.206019-1-hch@lst.de> <20260121064339.206019-8-hch@lst.de> <20260122010440.GT5945@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260122010440.GT5945@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Jan 21, 2026 at 05:04:40PM -0800, Darrick J. Wong wrote: > > if (dio->flags & IOMAP_DIO_BOUNCE) > > - ret = bio_iov_iter_bounce(bio, dio->submit.iter); > > + ret = bio_iov_iter_bounce(bio, dio->submit.iter, UINT_MAX); > > Nitpicking here, but shouldn't this be SIZE_MAX? bi_size can't store more than UINT_MAX, so I think this is correct.