Skip to content

Commit 53058c7

Browse files
sjp38akpm00
authored andcommitted
mm/damon: remove damon_callback->private
The field was added to let users keep their personal data to use inside of the callbacks. However, no one is actively using that now. Remove it. Link: https://lkml.kernel.org/r/20250306175908.66300-10-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 52f7c35 commit 53058c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/linux/damon.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,12 +609,10 @@ struct damon_operations {
609609
* @after_aggregation: Called after each aggregation.
610610
* @before_damos_apply: Called before applying DAMOS action.
611611
* @before_terminate: Called before terminating the monitoring.
612-
* @private: User private data.
613612
*
614613
* The monitoring thread (&damon_ctx.kdamond) calls @before_start and
615614
* @before_terminate just before starting and finishing the monitoring,
616-
* respectively. Therefore, those are good places for installing and cleaning
617-
* @private.
615+
* respectively.
618616
*
619617
* The monitoring thread calls @after_wmarks_check after each DAMON-based
620618
* operation schemes' watermarks check. If users need to make changes to the
@@ -630,8 +628,6 @@ struct damon_operations {
630628
* If any callback returns non-zero, monitoring stops.
631629
*/
632630
struct damon_callback {
633-
void *private;
634-
635631
int (*before_start)(struct damon_ctx *context);
636632
int (*after_wmarks_check)(struct damon_ctx *context);
637633
int (*after_sampling)(struct damon_ctx *context);

0 commit comments

Comments
 (0)