From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8EE0221577; Mon, 18 Aug 2025 13:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755524338; cv=none; b=DzVWf2AW+DhxpBFnhkRwlzbpKkDI044GpOyykJdiI9S1MbdAI14KSr9PIyEKlaL+kseBx/dP8jZtA9VFYDIgs2YIvnHaLCOQ77/d/QLFe4CcE7Lx1R3qp01foC27yxyQikt2R4gxHgxsfRzLBe47qwy/7rP3wyvR4KXzwcU2SiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755524338; c=relaxed/simple; bh=3jfnXbgWuNvFRC38Md3WmRzn2bBBnepL7jba4qwBKHk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XK9dTC2zrY6dquFytGf8Ek6PXjqpMhYc8DmZnoqbwGS2x6L0OWB/+KMvTE38lIeRG6Unu5hvSx3v+rSxkPxvzmeiy/cyEuFR++bUG75bMI5tAL4LOCJYZj+1wuXUPaZ2cVKoVGmjO4BQMZG9i0UvN+bwetHcl843CCamdRTd0E0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RXUZeAsr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RXUZeAsr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BF19C116C6; Mon, 18 Aug 2025 13:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755524337; bh=3jfnXbgWuNvFRC38Md3WmRzn2bBBnepL7jba4qwBKHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RXUZeAsrgVGkCKcfB9WPYSUntiyn6nya2zB3KZ/M1cdX4fjtMUqsc3ZulMuIAhQyF 5pHg4b7MQhcv70gdUqXoobR7Ei8EB66XlBM1lnRRRikowpicSEf70mCWj44o43hfO8 Uy7J9Kxw6b77vaz7lcsEoNY5kCjT+S/Q2cBINnic= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bijan Tabatabai , SeongJae Park , Jonathan Corbet , Ravi Shankar Jonnalagadda , Andrew Morton Subject: [PATCH 6.15 442/515] mm/damon/core: commit damos->target_nid Date: Mon, 18 Aug 2025 14:47:08 +0200 Message-ID: <20250818124515.442086343@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124458.334548733@linuxfoundation.org> References: <20250818124458.334548733@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bijan Tabatabai commit 579bd5006fe7f4a7abb32da0160d376476cab67d upstream. When committing new scheme parameters from the sysfs, the target_nid field of the damos struct would not be copied. This would result in the target_nid field to retain its original value, despite being updated in the sysfs interface. This patch fixes this issue by copying target_nid in damos_commit(). Link: https://lkml.kernel.org/r/20250709004729.17252-1-bijan311@gmail.com Fixes: 83dc7bbaecae ("mm/damon/sysfs: use damon_commit_ctx()") Signed-off-by: Bijan Tabatabai Reviewed-by: SeongJae Park Cc: Jonathan Corbet Cc: Ravi Shankar Jonnalagadda Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- mm/damon/core.c | 1 + 1 file changed, 1 insertion(+) --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -978,6 +978,7 @@ static int damos_commit(struct damos *ds return err; dst->wmarks = src->wmarks; + dst->target_nid = src->target_nid; err = damos_commit_filters(dst, src); return err;