]> git.ipfire.org Git - thirdparty/linux.git/commit
mm: improve code consistency with zonelist_* helper functions
authorWei Yang <richard.weiyang@gmail.com>
Mon, 29 Jul 2024 09:17:17 +0000 (14:47 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:25:55 +0000 (20:25 -0700)
commit29943248af0a8ac3edb808564baa417b40e35521
tree8b82b1abc724f12fba0a74df099eb6c8389a0c69
parent9325b8b5a1cba1fbabe6e8217e248c5f90fd0e13
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/20240729091717.464-1-shivankg@amd.com
Co-developed-by: Shivank Garg <shivankg@amd.com>
Signed-off-by: Shivank Garg <shivankg@amd.com>
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
include/trace/events/oom.h
mm/mempolicy.c
mm/mmzone.c
mm/page_alloc.c