From patchwork Mon Jul 19 18:39:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12386591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C811C07E9D for ; Mon, 19 Jul 2021 18:40:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A40AE6101E for ; Mon, 19 Jul 2021 18:40:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A40AE6101E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3524C8D00F4; Mon, 19 Jul 2021 14:40:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3025A8D00EC; Mon, 19 Jul 2021 14:40:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CB868D00F4; Mon, 19 Jul 2021 14:40:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id E15A98D00EC for ; Mon, 19 Jul 2021 14:40:55 -0400 (EDT) Received: from smtpin38.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 6BBA01849A397 for ; Mon, 19 Jul 2021 18:40:54 +0000 (UTC) X-FDA: 78380204028.38.6AAAA7B Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf18.hostedemail.com (Postfix) with ESMTP id 9C875400208E for ; Mon, 19 Jul 2021 18:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=cRYuesrZ3ObFa4fKCj1q2UzL69UAq5pal7SYP2/grTc=; b=btU2/FVCn/k/+J3rnGAsBpMJjb El4oZTgVbeUcsV0YVuKKKUaFi8u/Oy/pIadYc6YreUbqMsYWetutCYyAioE3HbCWj9FaNiqW+al00 iW2GjahAqQmLRvh6l6h0YWbu+WkUNEWKtC+Ztiv/Oa+BbWBNxOorq0MaNJe0mkj3t8rWgIxjFpusR N4pdxuz/rUPpYmCL37ApLkPRKRhGj9PCQEreFwhomb8W5KdEB0g8ZdjAlD/tvx0XL+ZMqdi72YtyZ ydMhxnQ5C5bWkbtj0wgL/+UVlSdE47pfvVnxsqv/QDt7AngxzCGcUhkQFGkQ70E/Hk7I7kFEx7V2U jAwyRYAw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5YBO-007LQq-MU; Mon, 19 Jul 2021 18:40:06 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-block@vger.kernel.org Subject: [PATCH v15 00/17] Folio support in block + iomap layers Date: Mon, 19 Jul 2021 19:39:44 +0100 Message-Id: <20210719184001.1750630-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 9C875400208E X-Stat-Signature: tyqobcd7n39r3o5c3j71werzabo5djr7 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="btU2/FVC"; dmarc=none; spf=none (imf18.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-HE-Tag: 1626720052-848767 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This is (almost) everything necessary to support folios in iomap. No regressions with an xfstests run on my setup. v15: - Turn the / PAGE_SIZE into >> PAGE_SHIFT, as requested by Darrick - Modify the for loop to be in Darrick's preferred form - Improve documentation of bio_add_folio() - Add documentation for bio_for_each_folio_all() and folio_iter - Add bio.h to the generated kernel-doc - Rebase on top of folio for-next (which includes the iomap changes in -rc2) https://git.infradead.org/users/willy/pagecache.git/shortlog/refs/heads/for-next Matthew Wilcox (Oracle) (17): block: Add bio_add_folio() block: Add bio_for_each_folio_all() iomap: Convert to_iomap_page to take a folio iomap: Convert iomap_page_create to take a folio iomap: Convert iomap_page_release to take a folio iomap: Convert iomap_releasepage to use a folio iomap: Convert iomap_invalidatepage to use a folio iomap: Pass the iomap_page into iomap_set_range_uptodate iomap: Use folio offsets instead of page offsets iomap: Convert bio completions to use folios iomap: Convert readahead and readpage to use a folio iomap: Convert iomap_page_mkwrite to use a folio iomap: Convert iomap_write_begin and iomap_write_end to folios iomap: Convert iomap_read_inline_data to take a folio iomap: Convert iomap_write_end_inline to take a folio iomap: Convert iomap_add_to_ioend to take a folio iomap: Convert iomap_migrate_page to use folios Documentation/core-api/kernel-api.rst | 1 + block/bio.c | 21 ++ fs/iomap/buffered-io.c | 511 +++++++++++++------------- include/linux/bio.h | 56 ++- 4 files changed, 327 insertions(+), 262 deletions(-)