]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/{dbgfs,sysfs}: move target_has_pid() from dbgfs to damon.h
authorSeongJae Park <sj@kernel.org>
Mon, 6 Jun 2022 18:23:06 +0000 (18:23 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:02 +0000 (20:15 -0400)
commit4c89bb21c90359bf93d74a7d39f5e531b912b8e1
tree5922477f2b8a7810fc2f9ccfaf49f72d7c3e5fcc
parent7f9d3532729d57a0908b048fa6000e6290afbfc7
mm/damon/{dbgfs,sysfs}: move target_has_pid() from dbgfs to damon.h

The function for knowing if given monitoring context's targets will have
pid or not is defined and used in dbgfs only.  However, the logic is also
needed for sysfs.  This commit moves the code to damon.h and makes both
dbgfs and sysfs to use it.

Link: https://lkml.kernel.org/r/20220606182310.48781-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/dbgfs.c
mm/damon/sysfs.c