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=-12.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 B16FBC4741F for ; Sun, 1 Nov 2020 03:33:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1539422284 for ; Sun, 1 Nov 2020 03:33:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qAdQpzsG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1539422284 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lemote.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A10A86B006C; Sat, 31 Oct 2020 23:33:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96FC96B006E; Sat, 31 Oct 2020 23:33:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7489D6B0070; Sat, 31 Oct 2020 23:33:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0043.hostedemail.com [216.40.44.43]) by kanga.kvack.org (Postfix) with ESMTP id 3E8E26B006C for ; Sat, 31 Oct 2020 23:33:49 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id CFF25181AEF0B for ; Sun, 1 Nov 2020 03:33:48 +0000 (UTC) X-FDA: 77434430136.17.bee15_3c17e83272a4 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id B92CC180D0180 for ; Sun, 1 Nov 2020 03:33:48 +0000 (UTC) X-HE-Tag: bee15_3c17e83272a4 X-Filterd-Recvd-Size: 4113 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Sun, 1 Nov 2020 03:33:48 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id 1so5052927ple.2 for ; Sat, 31 Oct 2020 20:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=BjALlrNXEo/OcNWKugTiXlaqD1WGrYLS8CPlcbmef5M=; b=qAdQpzsGqXYh9MTmTzNwtjOYioya8GZyiDDblvgB4tIRT10D/M7BAiWejaRx11GHgE LugSoT4W1LVr6g8l/SgNa5FLAuNdW4+RyYfV8FHpjdtRJcC2Re0Ge3KFRK5iKYb+kSLm 2BHhZ8AvhFqI/NtLwinIg0klLTrkuezeTGiste/ONGklUnsUiVWX5PR3wgxglozQ+ALG 9jTdkoTJbz0Eo/CZ2Rp1Xn12AJNorLextjNSUUNQmNjr0l90Yc2SoF+nNNk4wUeFnIgA NBETFRdVDRSLyGCeu6ZvSmAnAbbgBXAjrmeLOTaAIQVsEOl1QbNfEly/bBKt3VW1/JJ9 ffXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=BjALlrNXEo/OcNWKugTiXlaqD1WGrYLS8CPlcbmef5M=; b=lqdPZCeEGaUNIqYWXWbekRlUoFiFoCUhXncEcwRE8uS+g0uXie9fxIzKHfh8c9U1T1 28d43SkvP20nzJj/xzoMRiUEPl6RbjaJOS0pDcYiWgxUwGnh3crRXG1ECeDMZNkUQR8F rH3eaetVm2o90mlKVtcTjU5GRfqMwfAOa0OnGIk03DoqueJwDO65IIWdEzBLwXhu5jcD 4E9Ct3KtnQn/8sFnV5TxMmB/vBcSEKOUZCNziAVS9JuELa+wf5A2HieBJI9IxqqIPUgj 9QVRzxYZuyrYDAF8bUxbFErh5X/NKxA97XuFOnESwMebQWu0W26kz8LnW+uJy3jozl8x 7HMA== X-Gm-Message-State: AOAM533lBU3CXFEsNCOIWUsTOxy4wdZ7s9jgMNLIVQcPQW0sfmTSRrrl /NnAfw8JlUgpzyL7Xi2t+XE= X-Google-Smtp-Source: ABdhPJy2Z81i2ysFdM64+isdcqVCTh/gx8xM0dO+hfM0kSLSLBDryTfD2mu8emebh+a1w9/tPOM5Jg== X-Received: by 2002:a17:902:c403:b029:d6:4021:28dc with SMTP id k3-20020a170902c403b02900d6402128dcmr15865676plk.36.1604201627441; Sat, 31 Oct 2020 20:33:47 -0700 (PDT) Received: from software.domain.org ([45.77.13.216]) by smtp.gmail.com with ESMTPSA id k8sm9038447pgi.39.2020.10.31.20.33.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Oct 2020 20:33:47 -0700 (PDT) From: Huacai Chen To: Thomas Bogendoerfer , Mel Gorman , Andrew Morton Cc: linux-mips@vger.kernel.org, linux-mm@kvack.org, Fuxin Zhang , Huacai Chen , Jiaxun Yang , Huacai Chen Subject: [PATCH Resend 2/3] mips/mm: include _PAGE_SPECIAL in _PAGE_CHG_MASK Date: Sun, 1 Nov 2020 11:33:57 +0800 Message-Id: <1604201638-4001-2-git-send-email-chenhc@lemote.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1604201638-4001-1-git-send-email-chenhc@lemote.com> References: <1604201638-4001-1-git-send-email-chenhc@lemote.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.001547, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: _PAGE_CHG_MASK contains the unchanged bits during pte_modify() and pmd_modify(). All other architectures include the _PAGE_SPECIAL bit in _PAGE_CHG_MASK, there is no reason that MIPS needn't. Signed-off-by: Huacai Chen --- arch/mips/include/asm/pgtable-bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/pgtable-bits.h b/arch/mips/include/asm/pgtable-bits.h index f697c32..50b3978 100644 --- a/arch/mips/include/asm/pgtable-bits.h +++ b/arch/mips/include/asm/pgtable-bits.h @@ -301,7 +301,7 @@ static inline uint64_t pte_to_entrylo(unsigned long pte_val) #define __READABLE (_PAGE_SILENT_READ | _PAGE_ACCESSED) #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED) -#define _PAGE_CHG_MASK (_PAGE_ACCESSED | _PAGE_MODIFIED | \ +#define _PAGE_CHG_MASK (_PAGE_ACCESSED | _PAGE_MODIFIED | _PAGE_SPECIAL | \ _PAGE_SOFT_DIRTY | _PFN_MASK | _CACHE_MASK) #endif /* _ASM_PGTABLE_BITS_H */ -- 2.7.0