Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3440615pxb; Mon, 1 Nov 2021 13:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz26WyBQrieE+YSjr9E0q31Ky7Y1mbakgvsYPHTeGJfwJ3dDd89AS6XbqVYam3efrEMVf8a X-Received: by 2002:a17:906:d554:: with SMTP id cr20mr40788407ejc.406.1635800056754; Mon, 01 Nov 2021 13:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635800056; cv=none; d=google.com; s=arc-20160816; b=FRDvqav4uuqnVkOIXSJzpuCkr4XNrVeCjLt2XybI5KUCmzXFdkOJ7t75opqfrIhQO1 ZHajhvc8QVGPD3qeOQfgmYmfmvpWLrCmaC+ENChKx2SqWiLhVjL3R8Py1YOV934uVKps pHhHH9XpUEuJGZjxOzLu/SrnJl2/RKHoE+A08lyCdZZuYudc0m5jaUrkGNr3YSs6dPBc JrMwrO70kEmfC+yRR1Wz/DIl/mgiDyVaHjt5K1EZhALilTpplfZ90fXNHYUAmNMlml3k wNni3FV/ScCjivRTT9NVmMXD3PweTcPfaIEw8gSfYI9LufocVXOgIobU9VbHf/B1qXtT e68g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CMGE2kkQeNi/kwlNp/sxaKwbffuHzsFYRTX7+Qn4S5k=; b=WQWol8ivKp+pgBQzd/qKTayNnQVYJ8jZ+dT4TPmjBQB3VJ1/trBzVch9xlJcARmJN2 +PQUnq9F076EN6YP4NVR4G3gUOU1/M3R0dzwHqVZfq+T2AxqSsztxjeUMi92qGptQS0I kLhmi9D4JVTJC2ARc9wmuL2hbn030gob2EaSoEufxXB+FOz8An9z93vJzwKrKq48mHzA WPluYH6nMQdbVPVg3zmBwPwSe5TiPly8wEnV3AQ/G1Msxdvjs0NhY5bGdrqLwK2fXn2p JLp9m+pydx2wUu6CwsmwSW+ASoCByNfA0Rl3qtGIhN2M/4SdgUmC1FqPqzWMmOOF9Q3H ND3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Dbu4JokQ; 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 ht11si12316490ejc.333.2021.11.01.13.53.53; Mon, 01 Nov 2021 13:54: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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Dbu4JokQ; 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 S231176AbhKAUyT (ORCPT + 99 others); Mon, 1 Nov 2021 16:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbhKAUyM (ORCPT ); Mon, 1 Nov 2021 16:54:12 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0F2C061714 for ; Mon, 1 Nov 2021 13:51:38 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id i14so23059225ioa.13 for ; Mon, 01 Nov 2021 13:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CMGE2kkQeNi/kwlNp/sxaKwbffuHzsFYRTX7+Qn4S5k=; b=Dbu4JokQJoepDvPa1O2EjBOPWwhJaddMCAqi05hDlVjKvuMr9LIcsz6aWOSgpvXI3A 31sX9LkCHSEigGYGMOVpIN/2+Yo4GHSwRHQWq3KYJ4BSin4ZhaF354PhZDZgVbWCgYII rfLqji0mTVg1k79xcx58UVwLWJI/35FBHOnpNpZ/js87+L40AiaLaTwO6WF7WMm6Rci/ /Ib9YX9HEiHx8MZH8Nh6lUf+fq/PJkAHD9Oi+cdMO3s2yTEGIDGHb2Y5IhF13SOPxXdd 0Fu6yTi4N2nNAGliR36vvNlPEqA1iHYgpz1AdQNqkHPmcXJyVXsKoWn8hU+474QzCQIm k5tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CMGE2kkQeNi/kwlNp/sxaKwbffuHzsFYRTX7+Qn4S5k=; b=TwjQS/63a7JHwONikdAmLW/0bqFMlx23uDHU3yXrp53BPyrZ3JiSNmB8e6Z+rv/i5M 9x7Prg48SJwywuthGd1Y1rAjaTo2vwmuV8L6slbO3JeU0/cXnclaTLOLGMdxIH6ULMWo BX7ijT3na/tg1FwWbPBPn+txHjWxbWFN7BbNkf5H3POcbd3VKDhUepKGdihg3a1lZNo5 kUiRDIQ1hmy5wuAQ2mc4AGPhB1U3ZKnAy9AZR0hOszvzyzmuHjpQF5vf0hbRgLwqPhlI SDNpdgH8J2n2U+k7pAZwLXlhio7t6TbLNTl8Qwz/V1/HKTyUM89E1CkGzBSVFkB9bkHD +h+g== X-Gm-Message-State: AOAM5329FSxAOgz4ZdacoOHmsJ/iIIUmCrefEhXEm/eVeu7XtHwxDE7G TqIcxFKk9am+JGfKwLjKJPvRz/VTUU9LhQ== X-Received: by 2002:a6b:8e58:: with SMTP id q85mr22385605iod.7.1635799898185; Mon, 01 Nov 2021 13:51:38 -0700 (PDT) Received: from [192.168.1.30] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id f11sm5817976ilu.82.2021.11.01.13.51.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Nov 2021 13:51:37 -0700 (PDT) Subject: Re: [PATCH 02/21] block: Add bio_add_folio() To: "Matthew Wilcox (Oracle)" , "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig References: <20211101203929.954622-1-willy@infradead.org> <20211101203929.954622-3-willy@infradead.org> From: Jens Axboe Message-ID: <0384e51b-0938-dccb-8c70-caa1f2b35d34@kernel.dk> Date: Mon, 1 Nov 2021 14:51:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211101203929.954622-3-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? With that: Reviewed-by: Jens Axboe -- Jens Axboe