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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 9F200C433E0 for ; Thu, 4 Feb 2021 20:26:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0D37664E3F for ; Thu, 4 Feb 2021 20:26:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D37664E3F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6B34B6B0005; Thu, 4 Feb 2021 15:26:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 68B436B0006; Thu, 4 Feb 2021 15:26:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A1CD6B006E; Thu, 4 Feb 2021 15:26:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0122.hostedemail.com [216.40.44.122]) by kanga.kvack.org (Postfix) with ESMTP id 431646B0005 for ; Thu, 4 Feb 2021 15:26:27 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0CC8B1EF1 for ; Thu, 4 Feb 2021 20:26:27 +0000 (UTC) X-FDA: 77781718014.05.wrist80_430b2e7275df Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id E20D118032803 for ; Thu, 4 Feb 2021 20:26:26 +0000 (UTC) X-HE-Tag: wrist80_430b2e7275df X-Filterd-Recvd-Size: 4178 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Thu, 4 Feb 2021 20:26:26 +0000 (UTC) Received: by mail-lj1-f177.google.com with SMTP id y14so5012045ljn.8 for ; Thu, 04 Feb 2021 12:26:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CcswhGyfXRiTPz9gofVZNM6e1Bjyjyjbhu9XEf22VTI=; b=G/UQyzZ2rkb5i0SW1/XtGktTNH8JMArV7APS+ybJgQxaCj8OPAOXA0GKbsn22jmUtj If6gprW4MJe9pVcfZknvlVBZmxBDaik1LmlRUgPjdGL3bcas0L50Xfq147xno8zaEfWD np0IUJ+CKiao9iNXejHqxHOA67/1Jizs/45sU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CcswhGyfXRiTPz9gofVZNM6e1Bjyjyjbhu9XEf22VTI=; b=sghDD1FZd5L9JkgcDX4Vpy/zO+THQNihk4hfZzoFfpftKdj6c+XdMO5gUnaJWwz5AT HuSDasLpm6XBhXIur8oxjbc6L/ZXB095nGr6DQoE4D4/cwGaFbJ2jvvMZdQ6QXbS2ayc A1wNLoUcoj+jIj/GAX7Gj+9QnzzJZls/LLSdgq8oW7qqYswELBu5xHq+1xkXzZ1TXhn4 xFtYL2PUDNEFhbQbxiqIT17CnzXF3oOA2Elu4CYq2SGYPWuFB5UATOr+jcV+c2sTAKYX irGEC4n5H3YJXOK8FXVzOLcoqwA5Kh+l6CL6bLNAq7pyJ9+6V9/NG7irNeAylunuxj6L pvNw== X-Gm-Message-State: AOAM531Lc4Qf10i8a+aKcQVMTDTGn2fGhqupdDln1SCxN/idKJVSCq/H jrPmVkR6wnqUfXBKdDMe7lWNEo4ZasTIcg== X-Google-Smtp-Source: ABdhPJyJhiCZqrfBqZ8AMs9zrbqcO9oI67MR+KRTNCHvjIP5K8RRcEvsJdrYijTun32F8tSuzkNfHg== X-Received: by 2002:a2e:a550:: with SMTP id e16mr615662ljn.264.1612470384628; Thu, 04 Feb 2021 12:26:24 -0800 (PST) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id v29sm743882lfq.230.2021.02.04.12.26.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Feb 2021 12:26:22 -0800 (PST) Received: by mail-lf1-f41.google.com with SMTP id f1so6552494lfu.3 for ; Thu, 04 Feb 2021 12:26:22 -0800 (PST) X-Received: by 2002:a05:6512:2287:: with SMTP id f7mr592095lfu.40.1612470381750; Thu, 04 Feb 2021 12:26:21 -0800 (PST) MIME-Version: 1.0 References: <20210204145033.136755-1-peterx@redhat.com> <20210204202055.192260-1-peterx@redhat.com> In-Reply-To: <20210204202055.192260-1-peterx@redhat.com> From: Linus Torvalds Date: Thu, 4 Feb 2021 12:26:04 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/4] mm: Use is_cow_mapping() across tree where proper To: Peter Xu Cc: Linux-MM , Linux Kernel Mailing List , Mike Kravetz , Jan Kara , Mike Rapoport , Andrew Morton , Christoph Hellwig , Kirill Tkhai , David Gibson , Jason Gunthorpe , Andrea Arcangeli , Miaohe Lin , Gal Pressman , Wei Zhang , Matthew Wilcox , Jann Horn , Kirill Shutemov , VMware Graphics , Roland Scheidegger , David Airlie , Daniel Vetter , Alexey Dobriyan Content-Type: text/plain; charset="UTF-8" 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: On Thu, Feb 4, 2021 at 12:21 PM Peter Xu wrote: > > After is_cow_mapping() is exported in mm.h, replace some manual checks > elsewhere throughout the tree but start to use the new helper. Thanks, Linus