Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2104923rdb; Tue, 3 Oct 2023 10:16:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDw2iyUOyloTSMvrIhRGac8KrVRvdr4c45wYeCgOWd8VF3sHbTBHphnOC7MP9yl+sOl1+E X-Received: by 2002:a05:6808:9a2:b0:3ad:f6ad:b9d2 with SMTP id e2-20020a05680809a200b003adf6adb9d2mr238879oig.16.1696353372149; Tue, 03 Oct 2023 10:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696353372; cv=none; d=google.com; s=arc-20160816; b=yGHAk2sMZlo1l3EDOa6gZVjnnEtYZg2wBpp4gmac21bmvrcrO+gIRyrFV9LeJqQQUT o63X+3RguaFDVwRQvfaRgFJ6JeMYVDV6hnTGRaGPDlbDjOjI6CqhhWNt6gBOj5GJ3v2Q hHIxLn54VDbZyDgx0QYCo2RJ2TcCFDcrekYV00s6M0kAuL/FqM5g7aaA9ew+FvzFFz6f /e7FQ+ti4eUB7pfVRc7c+h8AJjs1pLk+64hRQC5Ltjcf+V58o74KDGPb2su39XFjBfCo SYmNswwtGcIRHp1duWC0OLTaDQKxNpScrzQEOM1N5hvcjNgenejJssCQzJOOWCQVv5BN ezTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zwjXmyJg//4md64VO14v8NSw+0L9l5ReENJrqoBIryA=; fh=U71XQZbNeMsPXgvpWQ5Mcz8QHhhVZz4BGDSjjC+UoLA=; b=J40Fgb4qmg20lyeee24bd90ABRwCEouIiJnG71VDtV8xZWpYOE9nxyJE4Sta7dFfpo LY6qlggwd9NSCUeDfmbRs8//zoPOjw6t/AU4nenIvNUWYcTLUiouT1ImDh+MHJp5r+Fr wyY4lm3Lyj3Xa4UBOp1n37iOamRlUMMlMxC+9K5l3s6N5LjaDjicK2Qm5Jc0s+qGpV1Y FeVd2nMOzT/I8gmEKHd0CKDCFaTzt14xwZ/zk9ksGlWu1eEz3s4DV98xhb/J5Ik6PvyH lt3z/nuZPEJrRepa+Y6LUlo2XTzC1RxeVrPuapFmcBj6Ei4B2NG/TwgtLwytcSF1JNkl CPaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OeZp6aNp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z11-20020a6552cb000000b0056da0ae25d1si1808738pgp.831.2023.10.03.10.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OeZp6aNp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E6BBC811B062; Tue, 3 Oct 2023 10:16:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbjJCRP6 (ORCPT + 99 others); Tue, 3 Oct 2023 13:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231791AbjJCRP5 (ORCPT ); Tue, 3 Oct 2023 13:15:57 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0B81A3 for ; Tue, 3 Oct 2023 10:15:53 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-59f6441215dso14205937b3.2 for ; Tue, 03 Oct 2023 10:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696353353; x=1696958153; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zwjXmyJg//4md64VO14v8NSw+0L9l5ReENJrqoBIryA=; b=OeZp6aNpNJW/Y4qHKxirz7yprJ3O18nFEdfu2QnxXlmwIpHmZVOB//5Yi0oZrM6ccQ pgCkINfvqQSsKZgsCAKG9NsK305NeH4Kls3srR1pqrhAzZog3hPycjV/2+VKJ1OzfIXM AdTJJVleG+u8n4y+hpAYEv4jV+8TOiizaJZODkjiUD5aHb3kV+a/YVbVM70Yqrtvu3Mk ySubD3MSU7X+f2RPVgNvfaekLsVoWuLqjWjAxn0ZkR5KUBYTxGteT4fxaG7gvj20tZgt XLw+vf3edGh3QNudI12A55USpDxeZHMwc6Ma6GLm1n23XXanRjw14skFZcYm1lAM6m1W M6Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696353353; x=1696958153; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zwjXmyJg//4md64VO14v8NSw+0L9l5ReENJrqoBIryA=; b=ofHZOFq6KbJenpEP+U8+8ccONAB7l1rJRdJdJzCsPPi7smAUJL7tXmz974sM/L/xog gG/u7BxS1gJH9ORbZiADzXJQECYVc7orm+r1IXT8Blm4jKAV3PBnIScTuqr00mXL2SHs E1HJod2DNNiqxIKvuOGQxJbxc+Dy3Ouhyd7/Li/y3LAocU2EacthNWC/64Zj41ixL+lq HV69voFqGrFy+jZni4gjjO+IBvzkCG21q5VzCKv/PXh3ZD5blcwbh9jNBRe5btrwOjWx jg+P5UxU+AZqgWUbeR4jAcKwdgzNMDipAb7gW414r0zzLnKsWr5IY0avuzLQE2hJ6/DQ JcNw== X-Gm-Message-State: AOJu0YzRBedkMbyReCOiUtes+TJX9zw8SCn13m2vwW90ghm+Z7+BKj5+ 8STySV8ciWQidLWCkLLMg8I= X-Received: by 2002:a0d:cace:0:b0:58c:4e63:109 with SMTP id m197-20020a0dcace000000b0058c4e630109mr296707ywd.0.1696353353020; Tue, 03 Oct 2023 10:15:53 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.gmail.com with ESMTPSA id r137-20020a0de88f000000b005a23a62a25csm515946ywe.9.2023.10.03.10.15.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:15:52 -0700 (PDT) Date: Tue, 3 Oct 2023 10:15:50 -0700 From: Vishal Moola To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Mike Kravetz , Muchun Song , Suren Baghdasaryan Subject: Re: [PATCH v1 1/3] mm/rmap: move SetPageAnonExclusive() out of page_move_anon_rmap() Message-ID: References: <20231002142949.235104-1-david@redhat.com> <20231002142949.235104-2-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002142949.235104-2-david@redhat.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 10:16:10 -0700 (PDT) On Mon, Oct 02, 2023 at 04:29:47PM +0200, David Hildenbrand wrote: > Let's move it into the caller: there is a difference between whether an > anon folio can only be mapped by one process (e.g., into one VMA), and > whether it is truly exclusive (e.g., no references -- including GUP -- > from other processes). > > Further, for large folios the page might not actually be pointing at the > head page of the folio, so it better be handled in the caller. This is a > preparation for converting page_move_anon_rmap() to consume a folio. Reviewed-by: Vishal Moola (Oracle)