diff options
| author | Kaixu Xia <[email protected]> | 2022-08-27 17:02:51 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:26:04 -0700 |
| commit | 95cd2522669243a1804ba8e9583ed10b3b4f51ef (patch) | |
| tree | d812f0c6685abd1786b658d389992593a33432b1 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 09876ae73945ca69550ce2cbe0538de11997fd94 (diff) | |
mm/damon/vaddr: remove comparison between mm and last_mm when checking region accesses
The damon regions that belong to the same damon target have the same
'struct mm_struct *mm', so it's unnecessary to compare the mm and last_mm
objects among the damon regions in one damon target when checking
accesses. But the check is necessary when the target changed in
'__damon_va_check_accesses()', so we can simplify the whole operation by
using the bool 'same_target' to indicate whether the target changed.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kaixu Xia <[email protected]>
Reviewed-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions