* [PATCH v2] mm/damon: update expired description of damos_action
@ 2025-08-04 14:38 Sang-Heon Jeon
2025-08-04 16:50 ` SeongJae Park
0 siblings, 1 reply; 3+ messages in thread
From: Sang-Heon Jeon @ 2025-08-04 14:38 UTC (permalink / raw)
To: sj, honggyu.kim; +Cc: damon, linux-mm, Sang-Heon Jeon
Nowadays, damos operation actions support more various operation set.
But comments(also, generated documentation) doesn't updated.
So, fix the comments with current support status.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
Changes from v1 [1]:
1. change baseline from damon/next to mm/mm-new
2. Add note about DAMOS_PAGEOUT and demotion.
[1] https://lore.kernel.org/all/20250731132230.80046-1-ekffu200098@gmail.com/
---
I also watch your comment from [1]. Thank you for not forgetting :)
[1] https://lore.kernel.org/damon/20250801233942.1614-1-sj@kernel.org/
---
include/linux/damon.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/linux/damon.h b/include/linux/damon.h
index f13664c62ddd..d4b3ffd6144d 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -110,7 +110,7 @@ struct damon_target {
*
* @DAMOS_WILLNEED: Call ``madvise()`` for the region with MADV_WILLNEED.
* @DAMOS_COLD: Call ``madvise()`` for the region with MADV_COLD.
- * @DAMOS_PAGEOUT: Call ``madvise()`` for the region with MADV_PAGEOUT.
+ * @DAMOS_PAGEOUT: Reclaim the region.
* @DAMOS_HUGEPAGE: Call ``madvise()`` for the region with MADV_HUGEPAGE.
* @DAMOS_NOHUGEPAGE: Call ``madvise()`` for the region with MADV_NOHUGEPAGE.
* @DAMOS_LRU_PRIO: Prioritize the region on its LRU lists.
@@ -123,8 +123,10 @@ struct damon_target {
* The support of each action is up to running &struct damon_operations.
* &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except
* &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR
- * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum
- * DAMOS_LRU_DEPRIO, and &DAMOS_STAT.
+ * supports all actions except &enum DAMOS_WILLNEED, &enum DAMOS_COLD,
+ * &enum DAMOS_HUGEPAGE, &enum DAMOS_NOHUGEPAGE.
+ *
+ * Note that DAMOS_PAGEOUT doesn't trigger demotions.
*/
enum damos_action {
DAMOS_WILLNEED,
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] mm/damon: update expired description of damos_action
2025-08-04 14:38 [PATCH v2] mm/damon: update expired description of damos_action Sang-Heon Jeon
@ 2025-08-04 16:50 ` SeongJae Park
2025-08-05 12:37 ` Sang-Heon Jeon
0 siblings, 1 reply; 3+ messages in thread
From: SeongJae Park @ 2025-08-04 16:50 UTC (permalink / raw)
To: Sang-Heon Jeon; +Cc: SeongJae Park, honggyu.kim, damon, linux-mm
Hello Sang-Heon,
On Mon, 4 Aug 2025 23:38:16 +0900 Sang-Heon Jeon <ekffu200098@gmail.com> wrote:
> Nowadays, damos operation actions support more various operation set.
> But comments(also, generated documentation) doesn't updated.
> So, fix the comments with current support status.
>
> Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
> ---
> Changes from v1 [1]:
> 1. change baseline from damon/next to mm/mm-new
> 2. Add note about DAMOS_PAGEOUT and demotion.
Thank you for making this revision!
>
> [1] https://lore.kernel.org/all/20250731132230.80046-1-ekffu200098@gmail.com/
>
> ---
> I also watch your comment from [1]. Thank you for not forgetting :)
>
> [1] https://lore.kernel.org/damon/20250801233942.1614-1-sj@kernel.org/
>
> ---
> include/linux/damon.h | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/damon.h b/include/linux/damon.h
> index f13664c62ddd..d4b3ffd6144d 100644
> --- a/include/linux/damon.h
> +++ b/include/linux/damon.h
> @@ -110,7 +110,7 @@ struct damon_target {
> *
> * @DAMOS_WILLNEED: Call ``madvise()`` for the region with MADV_WILLNEED.
> * @DAMOS_COLD: Call ``madvise()`` for the region with MADV_COLD.
> - * @DAMOS_PAGEOUT: Call ``madvise()`` for the region with MADV_PAGEOUT.
> + * @DAMOS_PAGEOUT: Reclaim the region.
> * @DAMOS_HUGEPAGE: Call ``madvise()`` for the region with MADV_HUGEPAGE.
> * @DAMOS_NOHUGEPAGE: Call ``madvise()`` for the region with MADV_NOHUGEPAGE.
> * @DAMOS_LRU_PRIO: Prioritize the region on its LRU lists.
> @@ -123,8 +123,10 @@ struct damon_target {
> * The support of each action is up to running &struct damon_operations.
> * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except
> * &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR
> - * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum
> - * DAMOS_LRU_DEPRIO, and &DAMOS_STAT.
> + * supports all actions except &enum DAMOS_WILLNEED, &enum DAMOS_COLD,
> + * &enum DAMOS_HUGEPAGE, &enum DAMOS_NOHUGEPAGE.
I think we agreed[1] to add a reference to the design doc, instead of keeping
this duplicated. Am I missing something?
> + *
> + * Note that DAMOS_PAGEOUT doesn't trigger demotions.
> */
> enum damos_action {
> DAMOS_WILLNEED,
> --
> 2.43.0
[1] https://lore.kernel.org/CABFDxMGh7-vDgNzepJKtrhdOF40_U7=NT6Jvm85qtdwGpBZawg@mail.gmail.com
Thanks,
SJ
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] mm/damon: update expired description of damos_action
2025-08-04 16:50 ` SeongJae Park
@ 2025-08-05 12:37 ` Sang-Heon Jeon
0 siblings, 0 replies; 3+ messages in thread
From: Sang-Heon Jeon @ 2025-08-05 12:37 UTC (permalink / raw)
To: SeongJae Park; +Cc: honggyu.kim, damon, linux-mm
Hi, SeongJae
On Tue, Aug 5, 2025 at 1:50 AM SeongJae Park <sj@kernel.org> wrote:
>
> Hello Sang-Heon,
>
> On Mon, 4 Aug 2025 23:38:16 +0900 Sang-Heon Jeon <ekffu200098@gmail.com> wrote:
>
> > Nowadays, damos operation actions support more various operation set.
> > But comments(also, generated documentation) doesn't updated.
> > So, fix the comments with current support status.
> >
> > Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
> > ---
> > Changes from v1 [1]:
> > 1. change baseline from damon/next to mm/mm-new
> > 2. Add note about DAMOS_PAGEOUT and demotion.
>
> Thank you for making this revision!
>
> >
> > [1] https://lore.kernel.org/all/20250731132230.80046-1-ekffu200098@gmail.com/
> >
> > ---
> > I also watch your comment from [1]. Thank you for not forgetting :)
> >
> > [1] https://lore.kernel.org/damon/20250801233942.1614-1-sj@kernel.org/
> >
> > ---
> > include/linux/damon.h | 8 +++++---
> > 1 file changed, 5 insertions(+), 3 deletions(-)
> >
> > diff --git a/include/linux/damon.h b/include/linux/damon.h
> > index f13664c62ddd..d4b3ffd6144d 100644
> > --- a/include/linux/damon.h
> > +++ b/include/linux/damon.h
> > @@ -110,7 +110,7 @@ struct damon_target {
> > *
> > * @DAMOS_WILLNEED: Call ``madvise()`` for the region with MADV_WILLNEED.
> > * @DAMOS_COLD: Call ``madvise()`` for the region with MADV_COLD.
> > - * @DAMOS_PAGEOUT: Call ``madvise()`` for the region with MADV_PAGEOUT.
> > + * @DAMOS_PAGEOUT: Reclaim the region.
> > * @DAMOS_HUGEPAGE: Call ``madvise()`` for the region with MADV_HUGEPAGE.
> > * @DAMOS_NOHUGEPAGE: Call ``madvise()`` for the region with MADV_NOHUGEPAGE.
> > * @DAMOS_LRU_PRIO: Prioritize the region on its LRU lists.
> > @@ -123,8 +123,10 @@ struct damon_target {
> > * The support of each action is up to running &struct damon_operations.
> > * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except
> > * &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR
> > - * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum
> > - * DAMOS_LRU_DEPRIO, and &DAMOS_STAT.
> > + * supports all actions except &enum DAMOS_WILLNEED, &enum DAMOS_COLD,
> > + * &enum DAMOS_HUGEPAGE, &enum DAMOS_NOHUGEPAGE.
>
> I think we agreed[1] to add a reference to the design doc, instead of keeping
> this duplicated. Am I missing something?
OMG. It's my mistake. I'll make v3 patch right now.
> > + *
> > + * Note that DAMOS_PAGEOUT doesn't trigger demotions.
> > */
> > enum damos_action {
> > DAMOS_WILLNEED,
> > --
> > 2.43.0
>
> [1] https://lore.kernel.org/CABFDxMGh7-vDgNzepJKtrhdOF40_U7=NT6Jvm85qtdwGpBZawg@mail.gmail.com
>
>
> Thanks,
> SJ
Best Regards.
Sang-Heon Jeon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-05 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-04 14:38 [PATCH v2] mm/damon: update expired description of damos_action Sang-Heon Jeon
2025-08-04 16:50 ` SeongJae Park
2025-08-05 12:37 ` Sang-Heon Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).