Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4288823pxb; Tue, 2 Nov 2021 07:19:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8FcYx7Fq7RCAu+RmZ2SwUOalhG7H/GH/UPXZbXvtmzisqGkvIxu8Qo2HlGADl3z6K0vfs X-Received: by 2002:a17:906:2599:: with SMTP id m25mr46871500ejb.302.1635862756702; Tue, 02 Nov 2021 07:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635862756; cv=none; d=google.com; s=arc-20160816; b=qgI4homwS+MghtO/5c0eDpuowxMY4bfjJSHbTHmtrbxzaF9aghjmY0gyKA66zzMUGT NPJB/WZ2sLT1+47BhsbPMaMb00diDe5JD0yiV8iVkMWTirnFR0gMsv5Yvsd9qn0+A7v5 zMW0VwtpKn9Vyix1/nHyL2YVwulS3Z3s52raAr/GeRaSl/Md/gPLIgfMXJQhYTdI3bVj 8IdB524q8pNtPIX6otAgbus92g3THuIHc2Jft7XtsbF75l9g4YOGXoxHFzj5Lq3KouWn KFjVn1LEk7emc3AK47aDN6BV0rZOiCKx3OSpG/Tn9KGOqi91PjEy0znA3l86TTJPg1Z7 Rlgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Frpr96sflPeeQPJcNwVDoz7On83K64HxlUkHEJTrzvk=; b=uBi272Qzkluws51qqvkmOnHN4IhzHh0rDpS7O4qCx2w0n9F//wFk2coqLF89scAZNU P8+MoV4vzLfWUIxOnQlBrn0CU0yapcJHF69jXPEeQjQzU+Rq4853HeKHL1rGgVonKXbu Wcfr+PKxEbLsiapv8Iszp1y3vdNFrP3GuxZzD/JfdzC5UR4cF1jqVvmILgmjSlnqURNQ X7ilm+VBu1pdtdXPMEJ1b2Va3EgtEl3T6cNJkLXZf/t5pJRq0ypsDXKwj2NaarN39t+W dvOKjfjWXpedejiEOVvotNGttawsE1qqLxFU3aMsZ25lm0jpFVol7BMivX/CBS+v6r3G 2vNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dzP+N8YE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw22si15779960ejc.184.2021.11.02.07.18.50; Tue, 02 Nov 2021 07:19:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dzP+N8YE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbhKBOTQ (ORCPT + 99 others); Tue, 2 Nov 2021 10:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhKBOTP (ORCPT ); Tue, 2 Nov 2021 10:19:15 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E97D4C061714; Tue, 2 Nov 2021 07:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Frpr96sflPeeQPJcNwVDoz7On83K64HxlUkHEJTrzvk=; b=dzP+N8YEsV5NKFfEHD4ddUohAc dANaLgnKRkAy3iIPJpjjFVP2o+c1WUllO471Y0Pp37vrPm5RqJmZzzWAo00q44fMMvoYOsYf4yxxR KwUZRxhYlYEg2GcxAxgCu7dd7+Eq+q/mIpvdArPTO+pEJI6uSG0mNx8X9OQJqUoN+lvMUFh97uu9X P+f5rO0VBpOii7AeA36S+CtTe/D8FtPNzlYk4i2Xih83VzaJ49SnqpKZgT50lEHcXJSjONvtlVl4p vLmqp1bKS8FBqvAu63U0mxGPEwGL+ypD7kK7JiP2TaManjgx/cO+sLscyEfFAtVWBLiLpldNwlzTl aQ9gDDXA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhuZS-004Xf5-VB; Tue, 02 Nov 2021 14:15:37 +0000 Date: Tue, 2 Nov 2021 14:15:26 +0000 From: Matthew Wilcox To: Jens Axboe Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH 02/21] block: Add bio_add_folio() Message-ID: References: <20211101203929.954622-1-willy@infradead.org> <20211101203929.954622-3-willy@infradead.org> <0384e51b-0938-dccb-8c70-caa1f2b35d34@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0384e51b-0938-dccb-8c70-caa1f2b35d34@kernel.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 01, 2021 at 02:51:37PM -0600, Jens Axboe wrote: > On 11/1/21 2:39 PM, Matthew Wilcox (Oracle) wrote: > > This is a thin wrapper around bio_add_page(). The main advantage here > > is the documentation that stupidly large folios are not supported. > > It's not currently possible to allocate stupidly large folios, but if > > it ever becomes possible, this function will fail gracefully instead of > > doing I/O to the wrong bytes. > > Might be better with UINT_MAX instead of stupidly here, because then > it immediately makes sense. Can you make a change to that effect? I'll make it "that folios larger than 2GiB are not supported. It's not currently possible to allocate folios that large," > With that: > > Reviewed-by: Jens Axboe > > -- > Jens Axboe >