Skip to contentSkip to conversation

mm-damon-remove-damon_callback-private.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 18, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled

     Subject: mm/damon: remove damon_callback->private

has been removed from the -mm tree. Its filename was
mm-damon-remove-damon_callback-private.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon: remove damon_callback->private
Date: Thu, 6 Mar 2025 09:59:04 -0800

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.

---

 include/linux/damon.h |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-remove-damon_callback-private +1 -5
@@ -609,12 +609,10 @@ struct damon_operations {
  * @after_aggregation:	Called after each aggregation.
  * @before_damos_apply:	Called before applying DAMOS action.
  * @before_terminate:	Called before terminating the monitoring.
- * @private:		User private data.
  *
  * The monitoring thread (&damon_ctx.kdamond) calls @before_start and
  * @before_terminate just before starting and finishing the monitoring,
- * respectively.  Therefore, those are good places for installing and cleaning
- * @private.
+ * respectively.
  *
  * The monitoring thread calls @after_wmarks_check after each DAMON-based
  * operation schemes' watermarks check.  If users need to make changes to the
@@ -630,8 +628,6 @@ struct damon_operations {
  * If any callback returns non-zero, monitoring stops.
  */
 struct damon_callback {
-	void *private;
-
 	int (*before_start)(struct damon_ctx *context);
 	int (*after_wmarks_check)(struct damon_ctx *context);
 	int (*after_sampling)(struct damon_ctx *context);

_

Patches currently in -mm which might be from [email protected] are