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=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 CFB9AC3815B for ; Thu, 16 Apr 2020 15:46:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A23CC21927 for ; Thu, 16 Apr 2020 15:46:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="auKzbnWN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895889AbgDPPqT (ORCPT ); Thu, 16 Apr 2020 11:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2895874AbgDPPqH (ORCPT ); Thu, 16 Apr 2020 11:46:07 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B799C061A0C for ; Thu, 16 Apr 2020 08:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=if4ORID+BxVDq4S2B7nn9PXXtWXd/o102VgOQcmpw40=; b=auKzbnWNJpIH6JqYDBJsrlYgBS xEQm82w18D1/XvtXaVXhK6bWl+6Iqb8z30NItNvIzf9qZNlSTnB0gvsIVMqycltcuCTyEGq7iMcT3 jgUQUH/eUnWE5BBJ/PWPr4Ksu/5orKT6K7ddLJUBWW6wxgIjh+4KTF6uHLPKg9Wh7o8H/wxNE4XMe 6cUL25vIQfR4FrHr6Y+8uT5cg64QYywWImyKO80Hi7cvdDWka1sh3IVrzICgt99n5+uAh7jzvBKOz dX/ZPriBXO+nli7INbWqndzPBhWb1+O9m/Uear8s2Py92832mN6OfOJeAUufZ9E7ucUwoSytvzIe9 ZZy1xjLg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jP6iN-00006K-Cp; Thu, 16 Apr 2020 15:46:07 +0000 From: Matthew Wilcox To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH v2 0/5] Make PageWriteback use the PageLocked optimisation Date: Thu, 16 Apr 2020 08:46:01 -0700 Message-Id: <20200416154606.306-1-willy@infradead.org> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: "Matthew Wilcox (Oracle)" PageWaiters is used by PageWriteback and PageLocked (and no other page flags), so it makes sense to use the same codepaths that have already been optimised for PageLocked, even if there's probably no real performance benefit to be had. v2: Rebased to 5.7-rc1 - Split up patches better - Moved the BUG() from end_page_writeback() to __clear_page_writeback() as requested by Jan Kara. - Converted the BUG() to WARN_ON() - Removed TestClearPageWriteback Matthew Wilcox (Oracle) (5): mm: Remove definition of clear_bit_unlock_is_negative_byte mm: Move PG_writeback into the bottom byte mm: Convert writeback BUG to WARN_ON mm: Use clear_bit_unlock_is_negative_byte for PageWriteback mm: Remove TestClearPageWriteback include/linux/page-flags.h | 8 ++++---- mm/filemap.c | 41 +++++-------------------------------- mm/page-writeback.c | 42 +++++++++++++++++++++++--------------- 3 files changed, 34 insertions(+), 57 deletions(-) -- 2.25.1