Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1665339lqa; Mon, 29 Apr 2024 15:45:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7YH6yWfWX4p9CmKdn1a8gkx5Hc5LyZyk6+7q/6CmREbG2wgnVGfBXc5btzbV37NwbZfbtziCpPcJx1ojJQWmLRT7b1iKy8WIRUlsVZg== X-Google-Smtp-Source: AGHT+IGH/YAJ5FTOgCEGgtGn15VnGYyx1oSqwtjXH+NiztX3OsXahL6Ih/tZd2CgbMSRGs47aviL X-Received: by 2002:a17:906:114a:b0:a52:30a3:930c with SMTP id i10-20020a170906114a00b00a5230a3930cmr9044097eja.58.1714430705745; Mon, 29 Apr 2024 15:45:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714430705; cv=pass; d=google.com; s=arc-20160816; b=gjcYZiv1nfAmoVMpgQAZ+xeh6lCOn+6WrFW1Ib6OTGdnY0X3nol+JIos4mXny9jMpM rbV/ultLiK0+lLEZ3dPqqMpdpXxeViQrLMNI4jrJB4E/KR8iybjenXN/fHdiyYOu6DVb znH3I93xnwHrDdXp8b79Zt9k2+b4wfsI3JVZt4sG66ITmLKVrVna/BYzT3tT5kM59ACb soTNfrCRz5FpQ4w18DN8nzcTMhI7AcFLGP7xi7VANpdKFqPmaIvE/HH/exLAU4pEccOD QCWO1hP5S50Ipe4FYDSKWE/HV5rvPY8SxM6/klrDif7ir1MoayhWx7kpCg41mknPgboy fNDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=TM3KjlQ9V56LHlkXYrHG6s+0+6RTopiNfb4ciPvEtFY=; fh=BzdeVYqZhG5iuwuKJRNLP969rvCput73lx0iwx2zu7A=; b=FMO7l7v7AaAVtPXwCAT4tjCmY4QkjoRKwL06N8KSc0GvZ6u2WiVxx7MGbUtrOd3G3B d2dIplVXp5mLvZaS9PlwJlHmSZyTWYPHAhqn+uPCUCBTsk2NeBe6mzk3jCTbcjvOpyQi eQQdJYJzIiQonYSGyPfXpLrUFBS3P3WQsFh0GhoHU6g/wy0pfWXg145bzmu/mqfP7vCQ j5ImUlmmPTu0cZ2LsKCqD9sADoeiW/JQcsU92A15pwLOvELUVBjZjq+yhMysR/cAOYCo IX82R/Fkef3GlObSGkectf060tXiUipKhwQY6I1Ad50F8phxRsx9p3zRxh6ixUfezssZ eQsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOrOnr+k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163109-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bm19-20020a170906c05300b00a5882a4035bsi8090653ejb.272.2024.04.29.15.45.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 15:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163109-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOrOnr+k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163109-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7A9041F225ED for ; Mon, 29 Apr 2024 22:45:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26F152E3E5; Mon, 29 Apr 2024 22:44:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XOrOnr+k" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E8B5BA2B; Mon, 29 Apr 2024 22:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714430697; cv=none; b=kElbsiEWYKWS74/caI1+W1F9Vjifjg43RaMhSq7pcz1/zg+PN3HZ5glyPnG5BybaRZ2Jo1TMxdApYquIhb1S4PlJMDCbJKRj4M28n0zWolB3ttcyDvLlULqrAp+i8upmus8IHcIXKAfyWhoRoIJL6WlGHPQCp95UetcPLSGTC9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714430697; c=relaxed/simple; bh=SuQisH3NEJlIi/U4/Jd+S9JnCjk1XX4cGbCrJ1G43QQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jpBx/YV4hLnjRtJWQMvhRruqCGGcKdDbdXVSn+Cg9Atz7mFI6m13KWF5gdz2ErmpiTw/hdakIlKWQzoPIDU4TKpqZKaoasltuk18BOuBDeriX5kouHleA2PCiSjCeCFL7KOvNPGY/Dlsr/Yxq1EcCvT5pk4OYmc/xfQhd6XBbx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XOrOnr+k; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83B92C113CD; Mon, 29 Apr 2024 22:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714430696; bh=SuQisH3NEJlIi/U4/Jd+S9JnCjk1XX4cGbCrJ1G43QQ=; h=From:To:Cc:Subject:Date:From; b=XOrOnr+k4jD2edkwQH3alhSvEJoLSHQeQbV0IZQTMjxdfbJwZQZRsdBR3PS4/r0+o RSZ+qPe8sEex/FzLlqZkdxpgSh8+c9SF3oTjCxcAZrso/Ys7Jg1CGUyCv2QBp9U/hf T3lePgdYhBulF9RuQaGzTEbL+/3iZBhtgwof2KGvpCMKwl4rNDlTL5X4YgCz/hxTH/ MATA+vdGM6qW8pX7J08BRd7JxGyKcNDlqh+qmcS1TSxqym+TuymaBXReeybt3MfFxC 4HBtfSMIRPZ/YgwVyORSATuv248HePKWfKYmVPndfhb73bvGsi/Sp39M9jJs3QdHTX G5trp2uS3WOzQ== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] mm/damon/paddr: simplify page level access re-check for pageout Date: Mon, 29 Apr 2024 15:44:47 -0700 Message-Id: <20240429224451.67081-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The 'pageout' DAMOS action implementation of 'paddr' asks reclaim_pages() to do page level access check again. But the user can ask 'paddr' to do the page level access check on its own, using DAMOS filter of 'young page' type. Meanwhile, 'paddr' is the only user of reclaim_pages() that asks the page level access check. Make 'paddr' does the page level access check on its own always, and simplify reclaim_pages() by removing the page level access check request handling logic. As a result of the change for reclaim_pages(), reclaim_folio_list(), which is called by reclaim_pages(), also no more need to do the page level access check. Simplify the function, too. SeongJae Park (4): mm/damon/paddr: avoid unnecessary page level access check for pageout DAMOS action mm/damon/paddr: do page level access check for pageout DAMOS action on its own mm/vmscan: remove ignore_references argument of reclaim_pages() mm/vmscan: remove ignore_references argument of reclaim_folio_list() mm/damon/paddr.c | 20 +++++++++++++++++++- mm/internal.h | 2 +- mm/madvise.c | 4 ++-- mm/vmscan.c | 12 +++++------- 4 files changed, 27 insertions(+), 11 deletions(-) base-commit: 784e2d5fd3231ad7cad0ac907be4bc3db30520c0 -- 2.39.2