From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795979665; b=b8AmKJTi5p0VPQnrItgvlUqS5JrIcYZ559MyViSTfNDtnEo2pHptqm6HF1ZEK0Qp435I nWGfLCgXLF06UMj+N+agBWnoIz0d2Jd/IgsvQA3fI4tM7dx5ulEsEvBjeZqlUVo+mHPfY yEZ8hfRP2o414uf1wwi3JkJ2u2UKzh+5/rA7UAkNcqWRnO3ilwsltgp/rAfRKJkrs8nHC sfyK8OMZhIjGzZEpimwz0la+QbZ8sjDMqXXoynUPjTMMg1q/nEi+o/eLeJM48UjTV3ozO RfpGKCPdkt+VDThr02ev1cg704hHqtNdGfo7XT7m80JoTKaFFJcfp6TRnnU/ru+PwsA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795979665; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=/jK/MBJjFdisyZOhf4bPRzIk34klvPXQJvyG4hnn87E=; b=ehwEMV65pmb/32+lZehdeEehDv7L94wK3BU1kHp5e+bBH+bb3SxjM8e+2VYA9sKXh5YJ Eb3pTQjIZveEcauj6fFdf8Znq+GQldUp8KZe1lW5n3aNJxUauirHpAo35zs/2zVMcvTl5 Ayu0g1gz8fm7B3iajDAi1kgZ8biwZ7ygG4T2gHfGwjLyDBUULfGFa6dHvfeeghg+piaol MEwQkDgU5UJOBJjNayoeLtrztB208odIDOzMMYi7h9k3I02lzIkSgjgLxpON8UUmOYp1+ Ux/VzyVOjYa5KeEAzGZH8xzs0GLJn1n9RYccMnKXvKgp9SZ2LflzDNpaNjUJ4AFJ5Bg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=U5yGFSu6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5409606A325; Sun, 29 Nov 2026 19:14:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=U5yGFSu6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F24721F000C1; Sun, 29 Nov 2026 19:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795979664; bh=/jK/MBJjFdisyZOhf4bPRzIk34klvPXQJvyG4hnn87E=; h=From:To:Cc:Subject:Date; b=U5yGFSu6uReD3S0dg0qAYf+8uhDPmDRhZtwyiOhZToYgH1hH58d3Zi0r19HkL7JOz urlC7LqrEZgD/CLsoKCoXZAfFLodht3Sjkh5D58+jJwY6RCTy7XAtufdRnfEnmppY3 VaIF5VjJykoWE2Tzl/EMeO088bmZlc70gMHy5NIyK40OGzIqSFAqkGVImOqL3W6L0a 7NDig1NdQ/43d95X+6T3KYK6uU1bdvzfl6gk/uCAHupP6O9ByoiujCIEu46kUVJxiP z92GThxSUPbOX/mBKdMhG8/cZxyNA9Q2dMEPxdLqBQzLm6zCUUPrOopWazzMPlPTfK KZiWeyIvToR6w== From: SJ Park To: Andrew Morton Cc: SJ Park , Shuah Khan , damon@lists.linux.dev, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/7] mm/damon: various improvements/cleanups for code, tests and comments Date: Sun, 29 Nov 2026 11:14:08 -0800 Message-ID: <20261129191416.92575-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 X-Mailing-List: damon@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Refactor code, optimize code speed, add missing feature supports, and update comments on various areas of DAMON. Optimize the efficiency of vaddr damos_migrate action under filter failures with patch 1. Use damos->last_applied on damos_migrate action in vaddr and support sz_filter_passed for damos_migrate action in vaddr, respectively with patch 2 and 3. Drop a redundant and racy quota goal target value validation in sysfs, in favor of that in the core layer, with patch 4. Drop unused variables and imports from selftests with patch 5 and 6. Update source file intro comments to call DAMON just DAMON, via patch 7. Issues for patches 1 and 3 were found by Sashiko. Those are mild inefficiency and unsupported features, though. Hence not Cc-ing stable. Changes from RFC v4 - RFC v4: https://lore.kernel.org/20261128190033.164440-1-sj@kernel.org - Rebase to the latest mm-new. - Drop RFC tag. Changes from RFC v3 - RFC v3: https://lore.kernel.org/20261127222719.105510-1-sj@kernel.org - Avoid NULL dereference when vm_normal_folio() returns NULL, in patch 2. - Rebase to the latest mm-new. Changes from RFC v2 - RFC v2: https://lore.kernel.org/20261101171630.81477-1-sj@kernel.org - Set last_applied regardless of damos-filtering. - Advance entire folio for invalid folio. - update subject for unused imports removal. - Add source file intro comments update patch. - Rebase to the latest mm-new. Changes from RFC - RFC: https://lore.kernel.org/20261031202614.96036-1-sj@kernel.org - Drop charge_target_from fixup consolidation. - Add a patch for using last_applied on vaddr migrate action. - Add missed damos_va_migrate_private->sz_filter_passed setup. - Fix wrong commit message for unused imports removal. SJ Park (7): mm/damon/vaddr: advance migration attempt in folio level for filter out mm/damon/vaddr: use damos->last_applied for migrate action mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold} action mm/damon/sysfs-schemes: drop redundant and racy zero target_value check selftests/damon/damos_apply_interval: remove unused variables selftests/damon: remove unused imports of sys and time modules mm/damon: update file intro comments to call DAMON just DAMON mm/damon/core.c | 2 +- mm/damon/ops-common.c | 2 +- mm/damon/ops-common.h | 2 +- mm/damon/sysfs-schemes.c | 3 --- mm/damon/tests/core-kunit.h | 2 +- mm/damon/tests/paddr-kunit.h | 2 +- mm/damon/tests/sysfs-kunit.h | 2 +- mm/damon/tests/vaddr-kunit.h | 2 +- mm/damon/vaddr.c | 27 ++++++++++++------- .../selftests/damon/damos_apply_interval.py | 2 -- .../damon/sysfs_no_op_commit_break.py | 1 - ...sysfs_update_schemes_tried_regions_hang.py | 1 - 12 files changed, 25 insertions(+), 23 deletions(-) base-commit: b7ee96f81dbca196a4aed69e280a444e8369dac2 -- 2.47.3