Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1172836rwe; Sat, 27 Aug 2022 02:15:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c+u/7jBpEPROdQIzlifXU6yIEDptmu9ToEAnhapURWa7Rml0DtrVU7j7WadTma6ZkmKgp X-Received: by 2002:a63:2051:0:b0:42a:4611:a207 with SMTP id r17-20020a632051000000b0042a4611a207mr6287857pgm.62.1661591733707; Sat, 27 Aug 2022 02:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661591733; cv=none; d=google.com; s=arc-20160816; b=DePeoX1BKov5B8U2ACDaF3EzzWwJF/QMJBtH/5USQLcwgqLqrPAE5GqFFEpW9bsC0h +uNEozYmnOfPqHMJ6brslVFEZfw3Diuz5V/sovIoCDPIPoJFIHjszRy/1GRjw3rnIFMM 2Np9/+u1LC2yUTwJVBXiUGn6aG5oy8f8sTZrnoo/Yw4ZBbn26TsbR/9hk6HBzwsuGxpB m0I3X5jXaxX7Lj47qJyTbFaXjZdnckx5EfBmamfHSHv5+GjBtF62YAqAyMdDfYVuSm+x p2NXtbJeJ7WQsMzexvu4LfAWA3VqG18ODcb8RhoXxnEWeUPLdOmLCuIpFyb81Y64Bv/p G2Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=90UlM2PuWOh2i930PTJrjm9Hw09uaXewUF8YqD4wyuk=; b=WgokaP0YGPSd5Rr16Uj9LQF8/1++/OBkb0I2saFINTlreY8kHu2Td34k0HlBPFRGbo bDw5SugyuAKUM3dfL1H9Qo0+argmGjoH1qQ3uBkVMJyfcaLNjzUNFPH3MoRx1q+al4u1 t721HlSopVZsB4bkhGhsTB55Bp4I6WrPvLHKZoiUbRk0qTMJz26pxAhCav2lNDHM7Xyp 1NAr1exxbpHufX9aGytbAJYvtmCoy2K/iwcAQISuNqb41jXAKu+B7GMdmgklVPiUUA8v CG4vT9M8/HtuKi2IgILtzwGbataWe5iBol1CfoqLn5H8oAGrjSGf4crfq6OlNBBQW+Hr WFaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UZT7avK2; 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 p9-20020a62ab09000000b00535b3ed44c0si3799889pff.97.2022.08.27.02.15.22; Sat, 27 Aug 2022 02:15:33 -0700 (PDT) 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=UZT7avK2; 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 S233490AbiH0JD1 (ORCPT + 99 others); Sat, 27 Aug 2022 05:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233884AbiH0JDP (ORCPT ); Sat, 27 Aug 2022 05:03:15 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9F0E29CA4 for ; Sat, 27 Aug 2022 02:03:13 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id n8-20020a17090a73c800b001fd832b54f6so1486191pjk.0 for ; Sat, 27 Aug 2022 02:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc; bh=90UlM2PuWOh2i930PTJrjm9Hw09uaXewUF8YqD4wyuk=; b=UZT7avK2u7Igc1jSHNW5W6BqyyviOvdR6mP6igbn1yln+jQ1siSL5Tb+MV+h8L2lQs eeKGY7F8CR4qQ7lLvTIpw1A15s5zRadRVnzrKljONn2veUAseTe/UJqo1edF8dJpWJFY e93wzsKQjCal8eiEpln43OnJVl5qVGocCkgf7b4Cs7mdA9wdXQ5UOCLfSzOzeEEuDZnj yjclsxdbr5xmH/Ruo5ahQ7gp/ThrMpJo19S038MBFPB66JwymOpqdasZwEAw99oe224+ +YHkEkPzFKlknen3DPuX5KI/yMTLDDdFn8t6meidzYC3pCkhCQFYLJZ7CKEPsWBR2VSC hZ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=90UlM2PuWOh2i930PTJrjm9Hw09uaXewUF8YqD4wyuk=; b=eUV/g00bPYvnGNHonC8sNtdJb/t4sf0LHfO1I+OY2wgUjb+sV6kV6ALnC298cWymc/ qL1XEIZYSig3BXkjriWOGM2dC9OZO2pFg+uiDmdychvdxyLMsv90HP8kzOXDgSCd5SwJ W/oKTt8sngpNzcrztkIDrFy6/ABhzo3NbcvWUlUrTvYuMKKVy6fJ8jySLg9x1BfIA2fn CD8MDnpOoZzB2Jv5qLrF6wCUy3ay0xiC1LtSPNvfpZXvaXdF9DKZDN/w7oMyKojdFuVZ DCJv795TUhKY6mIRIKaACA1kBKAnsOotIA0ZjqZaEEXBtuCTNz4iChLFiJxsIEjwwWZ5 gKHg== X-Gm-Message-State: ACgBeo3JSYRQsci+QV7iduGuKINSwXu3mE/01S39ZMgQpircIpCnVZBL vc59TJ91RVrrKa9c9glsow== X-Received: by 2002:a17:90b:3142:b0:1fa:f533:3191 with SMTP id ip2-20020a17090b314200b001faf5333191mr8274424pjb.193.1661590993285; Sat, 27 Aug 2022 02:03:13 -0700 (PDT) Received: from localhost.localdomain ([43.132.141.8]) by smtp.gmail.com with ESMTPSA id s88-20020a17090a69e100b001fb09316a26sm2943332pjj.43.2022.08.27.02.03.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Aug 2022 02:03:12 -0700 (PDT) From: xiakaixu1987@gmail.com X-Google-Original-From: kaixuxia@tencent.com To: sj@kernel.org, akpm@linux-foundation.org Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kaixu Xia Subject: [PATCH v2 0/2] mm/damon: Simplify the damon regions access check Date: Sat, 27 Aug 2022 17:02:49 +0800 Message-Id: <1661590971-20893-1-git-send-email-kaixuxia@tencent.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 From: Kaixu Xia This patchset simplify the operations when checking the damon regions accesses. v2: -Update commit messages and fix the 80 characters warning. -Add the check when damon target changed. Kaixu Xia (2): mm/damon: simplify the parameter passing for 'check_accesses' mm/damon/vaddr: remove comparison between mm and last_mm when checking region accesses mm/damon/paddr.c | 5 ++--- mm/damon/vaddr.c | 13 +++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) -- 2.27.0