Skip to contentSkip to conversation

mm: fix struct member name in function comments

PATCH In review Hao Lee 2 participants 2 messages Sep 27, 2019 – Oct 1, 2019

Subsystems (3)
lore
Share & tools
lore

Hao Lee

author
#0 lore raw

PATCH 1/1 mm: fix struct member name in function comments

The member in struct zonelist is _zonerefs instead of zones.

---
 include/linux/mmzone.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mmzone.h +1 -1
index 3f38c30d2f13..6d44a49b3f29 100644
@@ -1064,7 +1064,7 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist,
 /**
  * for_each_zone_zonelist_nodemask - helper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask
  * @zone - The current zone in the iterator
- * @z - The current pointer within zonelist->zones being iterated
+ * @z - The current pointer within zonelist->_zonerefs being iterated
  * @zlist - The zonelist being iterated
  * @highidx - The zone index of the highest zone to return
  * @nodemask - Nodemask allowed by the allocator
Signature · 1 line
2.14.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Hao Lee

The member in struct zonelist is _zonerefs instead of zones.

Quoted 19 lines

---
include/linux/mmzone.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mmzone.h +1 -1
index 3f38c30d2f13..6d44a49b3f29 100644
@@ -1064,7 +1064,7 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist,
 /**
 * for_each_zone_zonelist_nodemask - helper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask
 * @zone - The current zone in the iterator
- * @z - The current pointer within zonelist->zones being iterated
+ * @z - The current pointer within zonelist->_zonerefs being iterated
 * @zlist - The zonelist being iterated
 * @highidx - The zone index of the highest zone to return
 * @nodemask - Nodemask allowed by the allocator
Signature · 1 line
2.14.5
Signature · 2 lines
Wei Yang
Help you, Help me