From patchwork Tue Jun 15 16:23:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12322363 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 518BAC48BE5 for ; Tue, 15 Jun 2021 16:24:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E3B03616EC for ; Tue, 15 Jun 2021 16:24:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3B03616EC 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 4B39B6B006E; Tue, 15 Jun 2021 12:24:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 43CE86B0070; Tue, 15 Jun 2021 12:24:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2B76E6B0071; Tue, 15 Jun 2021 12:24:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0087.hostedemail.com [216.40.44.87]) by kanga.kvack.org (Postfix) with ESMTP id EAC9A6B006E for ; Tue, 15 Jun 2021 12:24:49 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 8155D180AD804 for ; Tue, 15 Jun 2021 16:24:49 +0000 (UTC) X-FDA: 78256481898.29.E92CD10 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf27.hostedemail.com (Postfix) with ESMTP id 320B78019374 for ; Tue, 15 Jun 2021 16:24:39 +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=hoq0JoTPz7p7CotYaN2gPzifXVA9YFY41r8VJShbg1w=; b=VCKPt1yAPXlhTOt1jSQCoiIFD4 CmB795grsvoik5GzignNpSKEy2HWZz1tX8LVNU4d6lnO+XH/GDaRj+iXTG2thqk5vP5KB23YbCOhE d+IrWqtZAHK4rW+5EEcRNUKSnsjySYDx3+wjbFDw+vwS7AyKXC1c8a7PDCnbVKBw+Mdrfj8Y8K0B/ VTVuy/5zYDp7pmgis/nCJ7Tp4b547XKjxIK2lkB6zBNBIYD5Hilp9+qG8zTXk/EUo3DsmnkrimyF3 wpagSHmmyBpFBnS9SVKBEnIWv9EDk7DzZsWc5W5uH5S6iyPZ07JrOq7qaj43bX9xtnH8Kz6cwDjcR UU2VBL8w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltBqt-0070I8-Tx; Tue, 15 Jun 2021 16:23:54 +0000 From: "Matthew Wilcox (Oracle)" To: Christoph Hellwig , Andrew Morton , Jan Kara , Al Viro , Greg Kroah-Hartman , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH 0/6] Further set_page_dirty cleanups Date: Tue, 15 Jun 2021 17:23:36 +0100 Message-Id: <20210615162342.1669332-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 320B78019374 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=VCKPt1yA; spf=none (imf27.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Stat-Signature: 47f6tx8ngumxbxr5kmwnqgojrknhtm39 X-HE-Tag: 1623774279-523074 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: Prompted by Christoph's recent patches, here are some more patches to improve the state of set_page_dirty(). They're all from the folio tree, so they've been tested to a certain extent. Matthew Wilcox (Oracle) (6): mm/writeback: Move __set_page_dirty() to core mm mm/writeback: Use __set_page_dirty in __set_page_dirty_nobuffers iomap: Use __set_page_dirty_nobuffers fs: Remove anon_set_page_dirty() fs: Remove noop_set_page_dirty() mm: Move page dirtying prototypes from mm.h drivers/dax/device.c | 2 +- fs/buffer.c | 24 ------------------------ fs/ext2/inode.c | 2 +- fs/ext4/inode.c | 2 +- fs/fuse/dax.c | 3 ++- fs/gfs2/aops.c | 2 +- fs/iomap/buffered-io.c | 27 +-------------------------- fs/libfs.c | 27 +-------------------------- fs/xfs/xfs_aops.c | 4 ++-- fs/zonefs/super.c | 4 ++-- include/linux/fs.h | 1 - include/linux/iomap.h | 1 - include/linux/mm.h | 4 ---- include/linux/pagemap.h | 4 ++++ mm/page-writeback.c | 37 +++++++++++++++++++++++++++---------- 15 files changed, 43 insertions(+), 101 deletions(-)