]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/sysfs: change few functions execute order
authorXin Hao <xhao@linux.alibaba.com>
Thu, 8 Sep 2022 08:19:32 +0000 (16:19 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:08 +0000 (14:03 -0700)
commit9e0ec3ef1a5ccb41d0714c13d952143a8f176121
treec04b28bfcf6b283eba21465da66171d97aa381b4
parent163c628caeccdc0a9b3e2cc14ed3a54965f67619
mm/damon/sysfs: change few functions execute order

There's no need to run container_of() as early as we do.

The compiler figures this out, but the resulting code is more readable.

Link: https://lkml.kernel.org/r/20220908081932.77370-1-xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs.c