Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp158786rwb; Tue, 6 Dec 2022 18:54:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4i9hBO256yhnQ+zA8jrVLWddNUWaRudAuulvUuD30ThFTzN0JsGFE7AZt0GsWG6PSwhkz8 X-Received: by 2002:a17:906:7185:b0:7c0:deb6:e13c with SMTP id h5-20020a170906718500b007c0deb6e13cmr12733698ejk.457.1670381667735; Tue, 06 Dec 2022 18:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670381667; cv=none; d=google.com; s=arc-20160816; b=HGrKKf+9j59HdnuXTBcpKsqNNU/qPVxIPJNbZqtx+POfVUyQs3OXZuK7Q3dpzb0USX u5T+0xoh62ih0hXp4BlQRkyR8sGt2m1z1ZbrOssd7+D4baNrtN1t9eZ5AyaNduub76R+ aimMPOXZCHI6obTYcuhmRI8zbdxy5kM2HWDWlCBUfIQ9wrofZIdZA3M0d46yV27QRBTU BNxTXClM+Y5OEO0FtimaKyJQvpRuyDDBbNUJyXY151nBVUwvizEetnsESXUTVA7c3FuW b4z5Qd42+Jgn1vQDqNWQTx7XzQJa/grtHNaf34A0LvZGcuOIjArXeJ3zAV0rn/Za3lMQ PTXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KbXxDs8qKafWAR7bqMoI00ZpTS2+CW/S/4T/0IodwXQ=; b=Ux7k6s8pUMAQCCF+7t4FDfPMZpMBnojqwcO+Io4H1tlN37F9XfJyYbisRM4E1sBkJk VWaqX3l09RSlQBjJusuW7WujC9wgV3FkWw7bVm+ya7WOAwmNIe8jcT5QMHu5oFF7Mnhp Lcvh6L0wd8UkiaZpLreHmtfpa8SrGAjM6Y1Kip3YecEFimPExx2+nRFQdCQ/wBFqmkYD wxvznF9ueJ8js+/Zvzydgv8NTCkB4LumnaVZw/84XFNIRx5XdmOirJT5ciwW7Kl0cBkz 4E6pQ2dWp7hc5FeItxVfjTdSpGYd+9+ZGifOGIxRVlAm5yMdOuD2euhpapf1N4XvPbhy P3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FzBv8eon; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a50e608000000b0046bfb391d2asi3103376edm.472.2022.12.06.18.54.09; Tue, 06 Dec 2022 18:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FzBv8eon; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbiLGCoL (ORCPT + 77 others); Tue, 6 Dec 2022 21:44:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbiLGCoJ (ORCPT ); Tue, 6 Dec 2022 21:44:09 -0500 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9570C54767 for ; Tue, 6 Dec 2022 18:44:08 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-3b10392c064so172689357b3.0 for ; Tue, 06 Dec 2022 18:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KbXxDs8qKafWAR7bqMoI00ZpTS2+CW/S/4T/0IodwXQ=; b=FzBv8eonOeeQZyfeURr9aLopxT7FxdLDbDtjyt7834bRLjztrdyk7RY71F91+2l+81 eQlarU87dp3oo39ZemUgu6mxVoqK4m9b7o2xWVYga1nnzgjDqIDmtZ/BjrDDtSjzXqF6 DHpBi5+La4ZijX2hpvpN7zHEf0mcepIXJVoZHDG5FI5ujCgsq/79szOiNEim5qrm9Be+ kRfTpHT6LLpQgS9xD4/HNINLlwMtC0HShoMHIf0IzLe/c7tjA0BID+C7jOjD5eWna+TJ qJdmYX6S34JJhGGif3AGmQ+n2y+1A+o7U5IQr2R3xxRH1eHladqu6EudTtyS/sSZQOpZ ZPjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KbXxDs8qKafWAR7bqMoI00ZpTS2+CW/S/4T/0IodwXQ=; b=ZGC5d/B8kMe2Lu53W+lV7hYgYEJ/7wgdueit6iUSHfQtdgAdnm3HPCGGyI2zuC6+tI uGjzSME3jqaIuD4b4DY9TJJVUfZQVyk3a6pEPfz+dlscIDSiwYQaLp8Pjre1HTaOC5vB zxjxD74thN5GcfbdFw8gNKj2xJiDs92tRAyQz7egzclEQblhMSTxniXA0qGB5zmmNUNh kuymj896UP0Iy4BrleI4cbG4SrDQAVGOYMq9s5u8uLR6LubUUGqXDGuXVb74kj4c/nlb UrSokyDhkNCvo8MpDXxNWFgO3lNuVX4lTDHaM4JD9l5tjlcRjwjqOr0nG+sL2ff8OawB /B+w== X-Gm-Message-State: ANoB5pnbWMFWAsj0pIxNywYes2hfHgwBbPkxVl0svJnrsvfAcWoQTtGQ BpAuenKQt1SP2La42nzOcni7ylWdofyp75Qo5FgxGVcx X-Received: by 2002:a0d:cb93:0:b0:3e4:5d25:d33f with SMTP id n141-20020a0dcb93000000b003e45d25d33fmr17233968ywd.190.1670381047765; Tue, 06 Dec 2022 18:44:07 -0800 (PST) MIME-Version: 1.0 References: <20221207002158.418789-3-vishal.moola@gmail.com> <20221207005624.146281-1-sj@kernel.org> In-Reply-To: <20221207005624.146281-1-sj@kernel.org> From: Vishal Moola Date: Tue, 6 Dec 2022 18:43:57 -0800 Message-ID: Subject: Re: [PATCH 2/3] damon: Convert damon_pa_mark_accessed_or_deactivate() to use folios To: SeongJae Park Cc: linux-mm@kvack.org, damon@lists.linux.dev, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 6, 2022 at 4:56 PM SeongJae Park wrote: > > Hi Vishal, > > > Thank you for this patch. > > Nit pick. Could we please replace 'damon:' on the subject with 'mm/damon:' to > look more consistent with other DAMON patches? Thanks for looking over this patch! I'll make the subject mm/damon in a v2. > On Tue, 6 Dec 2022 16:21:57 -0800 "Vishal Moola (Oracle)" wrote: > > > This change replaces 2 calls to compound_head() with one. > > I guess you mean _compound_head() calls in page_folio() that called from > mark_page_accessed() and folio_mark_accessed(). However, deactivate_page() > calls page_folio() anyway, so this patch doesn't reduce the number of calls to > one but keep the number, correct? Am I missing something? If I'm not, I'd > like to clean up the wording. The 2 calls I was referring to were from mark_page_accessed() and put_page(). As you've noticed, deactivate_page() still calls page_folio() here :). > > This is in preparation for the conversion of deactivate_page() to > > deactivate_folio(). > > I think folio_deactivate() might be a more consistent naming. What do you > think? I do like the name folio_deactivate() better than deactivate_folio(), I'll change that in v2 as well.