diff options
| author | Wei Yang <[email protected]> | 2024-07-29 14:47:17 +0530 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-01 20:25:55 -0700 |
| commit | 29943248af0a8ac3edb808564baa417b40e35521 (patch) | |
| tree | 8b82b1abc724f12fba0a74df099eb6c8389a0c69 /include/trace | |
| parent | 9325b8b5a1cba1fbabe6e8217e248c5f90fd0e13 (diff) | |
mm: improve code consistency with zonelist_* helper functions
Replace direct access to zoneref->zone, zoneref->zone_idx, or
zone_to_nid(zoneref->zone) with the corresponding zonelist_* helper
functions for consistency.
No functional change.
Link: https://lkml.kernel.org/r/[email protected]
Co-developed-by: Shivank Garg <[email protected]>
Signed-off-by: Shivank Garg <[email protected]>
Signed-off-by: Wei Yang <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Mike Rapoport (IBM) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/oom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/oom.h b/include/trace/events/oom.h index a42be4c8563b..9f0a5d1482c4 100644 --- a/include/trace/events/oom.h +++ b/include/trace/events/oom.h @@ -55,8 +55,8 @@ TRACE_EVENT(reclaim_retry_zone, ), TP_fast_assign( - __entry->node = zone_to_nid(zoneref->zone); - __entry->zone_idx = zoneref->zone_idx; + __entry->node = zonelist_node_idx(zoneref); + __entry->zone_idx = zonelist_zone_idx(zoneref); __entry->order = order; __entry->reclaimable = reclaimable; __entry->available = available; |