Skip to content

Commit 30d8ec7

Browse files
Mateusz Nosektorvalds
authored andcommitted
mmzone: clean code by removing unused macro parameter
Previously 'for_next_zone_zonelist_nodemask' macro parameter 'zlist' was unused so this patch removes it. Signed-off-by: Mateusz Nosek <mateusznosek0@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20200917211906.30059-1-mateusznosek0@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2187e17 commit 30d8ec7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/linux/mmzone.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist,
11161116
z = next_zones_zonelist(++z, highidx, nodemask), \
11171117
zone = zonelist_zone(z))
11181118

1119-
#define for_next_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \
1119+
#define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \
11201120
for (zone = z->zone; \
11211121
zone; \
11221122
z = next_zones_zonelist(++z, highidx, nodemask), \

‎mm/page_alloc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3741,8 +3741,8 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags,
37413741
*/
37423742
no_fallback = alloc_flags & ALLOC_NOFRAGMENT;
37433743
z = ac->preferred_zoneref;
3744-
for_next_zone_zonelist_nodemask(zone, z, ac->zonelist,
3745-
ac->highest_zoneidx, ac->nodemask) {
3744+
for_next_zone_zonelist_nodemask(zone, z, ac->highest_zoneidx,
3745+
ac->nodemask) {
37463746
struct page *page;
37473747
unsigned long mark;
37483748

0 commit comments

Comments
 (0)