From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, 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 BAA40C433E9 for ; Fri, 22 Jan 2021 16:03:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A201022EBE for ; Fri, 22 Jan 2021 16:03:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A201022EBE 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 CC5236B000C; Fri, 22 Jan 2021 11:03:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C77486B000D; Fri, 22 Jan 2021 11:03:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BB4296B000E; Fri, 22 Jan 2021 11:03:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0153.hostedemail.com [216.40.44.153]) by kanga.kvack.org (Postfix) with ESMTP id A4B7D6B000C for ; Fri, 22 Jan 2021 11:03:19 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 357D112C3 for ; Fri, 22 Jan 2021 16:03:19 +0000 (UTC) X-FDA: 77733880518.21.cloth22_5308b662756d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 0A5051814C707 for ; Fri, 22 Jan 2021 16:03:04 +0000 (UTC) X-HE-Tag: cloth22_5308b662756d X-Filterd-Recvd-Size: 4284 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Fri, 22 Jan 2021 16:03:03 +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=B/kiTjmHGaRRrP1G8JY0NUDXmSmRpyqLhF1JzYpU0yM=; b=rU5ATMS8dhDUJCkDffPcPMDRq3 oUX7YcNAyZiLiso2iGLJqhfCGU2IdBa3NH2Msn0/DQi+n5Ewmx/mzrhO9MLxEdAxOgGHWi56Q6kyl O3zUemwf2vaevlNOpYlASc/SBlz2toh2Omljod5bwRHbZ/aITycyOrPi4VKiw1Y/N47WYif/0pZjk dNIB/7XNOzrugVQn9gQxjiO1A8nepck4L0rri12pQdbVzW/RwHJBxj/r2Yni0XhBuRA8APXw+mgnx oLUEzlP4cxXG2TAR7jzgKeTSzBPED92JPjz+E1U5DsLh9wzhCCs1xcPJdkmejqZSedL59tuOrto1M vF1UXPYQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l2ysc-000w5I-L8; Fri, 22 Jan 2021 16:01:55 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 00/18] Refactor generic_file_buffered_read Date: Fri, 22 Jan 2021 16:01:22 +0000 Message-Id: <20210122160140.223228-1-willy@infradead.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 a combination of Christoph's work to refactor generic_file_buffered_read() and some of my large-page support which was disrupted by Kent's refactoring of generic_file_buffered_read. v5: - Rebase on next-20210122 (new conflict due to typo fix) - Folded in Reviewed-bys v4: - Rebase on next-20210120 - Fix compilation error with pagevec_init & reinit - Simplify filemap_range_uptodate() by passing pos instead of iocb v3: - Fixed missing put_page for readahead with IOCB_NOIO (hch) - Fixed commit message for lock_page_for_iocb (nborisov) v2: - Added pagevec conversion upfront and rebased other patches on top of it (me) - Limit page search by max pgoff_t rather than by number of pages (me) - Renamed mapping_get_read_thps() to filemap_get_read_batch() (hch/me) - Added doc for filemap_get_read_batch() (hch/me) - Removed 'first' parameter from filemap_update_page() (me) - Folded "Remove parameters from filemap_update_page()" into an earlier patch (hch) - Restructured filemap_update_page() error handling flow (hch/me) - Pass the pagevec to filemap_create_page() (hch) - Renamed 'find_page' label to 'retry' (hch) - Explicitly check for AOP_TRUNCATED_PAGE instead of assuming err > 0 means retry (hch) - Move mark_page_accessed() and handling of i_size into main copy loop (= me) Christoph Hellwig (2): mm/filemap: Rename generic_file_buffered_read to filemap_read mm/filemap: Simplify generic_file_read_iter Matthew Wilcox (Oracle) (16): mm/filemap: Rename generic_file_buffered_read subfunctions mm/filemap: Remove dynamically allocated array from filemap_read mm/filemap: Convert filemap_get_pages to take a pagevec mm/filemap: Use head pages in generic_file_buffered_read mm/filemap: Pass a sleep state to put_and_wait_on_page_locked mm/filemap: Support readpage splitting a page mm/filemap: Inline __wait_on_page_locked_async into caller mm/filemap: Don't call ->readpage if IOCB_WAITQ is set mm/filemap: Change filemap_read_page calling conventions mm/filemap: Change filemap_create_page calling conventions mm/filemap: Convert filemap_update_page to return an errno mm/filemap: Move the iocb checks into filemap_update_page mm/filemap: Add filemap_range_uptodate mm/filemap: Split filemap_readahead out of filemap_get_pages mm/filemap: Restructure filemap_get_pages mm/filemap: Don't relock the page after calling readpage fs/btrfs/file.c | 2 +- include/linux/fs.h | 4 +- include/linux/pagemap.h | 3 +- mm/filemap.c | 565 ++++++++++++++++++---------------------- mm/huge_memory.c | 4 +- mm/migrate.c | 4 +- 6 files changed, 267 insertions(+), 315 deletions(-) --=20 2.29.2