diff options
| author | 2022-09-13 17:44:30 +0000 | |
|---|---|---|
| committer | 2022-10-03 14:03:10 -0700 | |
| commit | 02f17037fc6e38ca1c00ac87a112372a3867ba45 (patch) | |
| tree | bcbe406556a42562bb411fdab90d76a44509920c /tools/perf/scripts/python/netdev-times.py | |
| parent | mm/damon/paddr: deduplicate damon_pa_{mark_accessed,deactivate_pages}() (diff) | |
mm/damon/core: copy struct-to-struct instead of field-to-field in damon_new_scheme()
The function for new 'struct damos' creation, 'damon_new_scheme()', copies
each field of the struct one by one, though it could simply copied via
struct to struct. This commit replaces the unnecessarily verbose
field-to-field copies with struct-to-struct copies to make code simple and
short.
Link: https://lkml.kernel.org/r/20220913174449.50645-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
