Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/damon: update expired description of damos_action

Nowadays, damos operation actions support a greater operation set. But
comments (also, generated documentation) weren't updated. So fix the
comments with current support status.

Link: https://lkml.kernel.org/r/20250805123940.13691-1-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Honggyu Kim <honggyu.kim@sk.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sang-Heon Jeon and committed by
Andrew Morton
e6d7d350 3e86861d

+5 -5
+5 -5
include/linux/damon.h
··· 110 110 * 111 111 * @DAMOS_WILLNEED: Call ``madvise()`` for the region with MADV_WILLNEED. 112 112 * @DAMOS_COLD: Call ``madvise()`` for the region with MADV_COLD. 113 - * @DAMOS_PAGEOUT: Call ``madvise()`` for the region with MADV_PAGEOUT. 113 + * @DAMOS_PAGEOUT: Reclaim the region. 114 114 * @DAMOS_HUGEPAGE: Call ``madvise()`` for the region with MADV_HUGEPAGE. 115 115 * @DAMOS_NOHUGEPAGE: Call ``madvise()`` for the region with MADV_NOHUGEPAGE. 116 116 * @DAMOS_LRU_PRIO: Prioritize the region on its LRU lists. ··· 121 121 * @NR_DAMOS_ACTIONS: Total number of DAMOS actions 122 122 * 123 123 * The support of each action is up to running &struct damon_operations. 124 - * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except 125 - * &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR 126 - * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum 127 - * DAMOS_LRU_DEPRIO, and &DAMOS_STAT. 124 + * Refer to 'Operation Action' section of Documentation/mm/damon/design.rst for 125 + * status of the supports. 126 + * 127 + * Note that DAMOS_PAGEOUT doesn't trigger demotions. 128 128 */ 129 129 enum damos_action { 130 130 DAMOS_WILLNEED,