Skip to content

Commit 114d4b7

Browse files
codypstorvalds
authored andcommitted
mmzone: note that node_size_lock should be manipulated via pgdat_resize_lock()
Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 72c3b51 commit 114d4b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/linux/mmzone.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,9 @@ typedef struct pglist_data {
733733
* or node_spanned_pages stay constant. Holding this will also
734734
* guarantee that any pfn_valid() stays that way.
735735
*
736+
* pgdat_resize_lock() and pgdat_resize_unlock() are provided to
737+
* manipulate node_size_lock without checking for CONFIG_MEMORY_HOTPLUG.
738+
*
736739
* Nests above zone->lock and zone->span_seqlock
737740
*/
738741
spinlock_t node_size_lock;

0 commit comments

Comments
 (0)