Files
kernel_arpi/include/linux
Xin Hao c45cdbc02e UPSTREAM: mm/damon: modify damon_rand() macro to static inline function
damon_rand() cannot be implemented as a macro.

Example:
	damon_rand(a++, b);

The value of 'a' will be incremented twice, This is obviously
unreasonable, So there fix it.

Link: https://lkml.kernel.org/r/110ffcd4e420c86c42b41ce2bc9f0fe6a4f32cd3.1638795127.git.xhao@linux.alibaba.com
Fixes: b9a6ac4e4e ("mm/damon: adaptively adjust regions")
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

(cherry picked from commit 234d68732b6c135087bdebfa0630a43ae8c27758)

Bug: 228223814
Signed-off-by: zhijun wan <wanzhijun@oppo.com>
Change-Id: Idcc316e6f582959254111fb160d04875d235c306
2022-07-19 03:52:48 +00:00
..
2022-07-13 11:40:42 +02:00
2022-07-13 11:40:42 +02:00
2022-07-13 11:40:42 +02:00
2022-03-18 07:53:14 +01:00
2022-07-13 19:41:43 +02:00
2022-07-13 19:41:43 +02:00
2022-06-14 11:49:05 +02:00
2021-12-14 10:57:11 +01:00
2022-07-07 17:53:26 +02:00
2022-07-13 11:55:41 +02:00
2022-07-13 18:34:48 +02:00
2022-06-06 15:02:31 +02:00
2022-04-24 16:57:32 +02:00
2022-07-13 11:55:41 +02:00
2022-02-09 08:15:44 +01:00
2022-07-12 16:35:08 +02:00
2022-06-06 11:12:02 +02:00
2022-07-13 19:41:43 +02:00
2022-03-23 11:32:17 -07:00
2022-04-24 16:57:32 +02:00
2022-06-09 10:23:32 +02:00
2022-07-13 11:55:41 +02:00
2022-01-31 12:35:09 +01:00
2022-06-06 15:02:31 +02:00
2022-07-13 18:42:42 +02:00
2022-07-02 16:41:17 +02:00
2022-06-06 11:12:02 +02:00
2022-07-12 16:35:08 +02:00
2022-04-24 16:57:32 +02:00
2021-11-21 13:44:12 +01:00
2022-03-23 11:32:17 -07:00
2022-07-13 19:41:43 +02:00