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 BC2181E3DCD; Mon, 18 Aug 2025 13:10:28 +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=1755522628; cv=none; b=jKxjaN8pncN4+bem93wE3PJFmaE0Yh7OZpHohCSmxlf16BheZBjsrRZM0sRjfdQES79PD1FEMniebvLn5ZzbetlJHrDUijKWSSAgF5d+bLUV0BLBvM/pGnROcNMZzOxRC+4dFaLD9FyuiHJI6li9BXEHZ3tM0ZhuNNrtGsLv//s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755522628; c=relaxed/simple; bh=CNmZZgGKOl8fEUov2zvY+LMuHkFJTPbqbxlLXt6MOdg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jYS5DNhc+DDIdMOLATm1GsJFPtUkxwOo1KH5yU8JgDVmBnZAZODFhmvAMqeZwTAyYIHdetYsV5PHjZJsrfIoZ1UAsvPt8Q5X90mkxYGf0AP4TPxT87HaXHwJSzbXRcugkLHXmsYhw8bLZJl4rUr3JkBAWF0V1MRAjebrgs9nnxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WRDUubZC; 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="WRDUubZC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2960AC4CEEB; Mon, 18 Aug 2025 13:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755522628; bh=CNmZZgGKOl8fEUov2zvY+LMuHkFJTPbqbxlLXt6MOdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WRDUubZCxX9r7Ch96eIWm2HvqZXw1YqvZMMgdLd7d28JRPU5keT3xcsc9cNBV7doi njce31C+3DsiTjhLEL/kUAqm+UCG8A/Efzn2leqBh6qi4luziiGN4quleXmbyaJLZY tHZ+Gi5KhR0wcqap9SfsEYA53V+GIrl7hy94aluA= 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.12 373/444] mm/damon/core: commit damos->target_nid Date: Mon, 18 Aug 2025 14:46:39 +0200 Message-ID: <20250818124502.880545757@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124448.879659024@linuxfoundation.org> References: <20250818124448.879659024@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.12-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 @@ -837,6 +837,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;