]> git.baikalelectronics.ru Git - kernel.git/commit
mm: add comments on pglist_data zones
authorBen Widawsky <ben.widawsky@intel.com>
Thu, 11 Jun 2020 01:41:50 +0000 (18:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2020 02:14:18 +0000 (19:14 -0700)
commit6f4f8304ab7d3aeebe44528fb534a0f8a0033be5
tree282b6daef9d09f9a0e1a89aed9f99c568fd6e6eb
parentdd9966a0dec6b33127a1e27a8e25167286021bef
mm: add comments on pglist_data zones

While making other modifications it was easy to confuse the two struct
members node_zones and node_zonelists.  For those already familiar with
the code, this might seem to be a silly patch, but it's quite helpful to
disambiguate the similar-sounding fields

While here, add a small comment on why nr_zones isn't simply MAX_NR_ZONES

Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200520205443.2757414-1-ben.widawsky@intel.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mmzone.h