]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/mmzone.h
mm, mmzone: clarify the usage of zone padding
[karo-tx-linux.git] / include / linux / mmzone.h
index d4f5cac0a8c356ddeebbb7f9ae6d9508de65a94f..edafdaf62e901daa9db49594b65c1353225139b9 100644 (file)
@@ -477,20 +477,21 @@ struct zone {
        unsigned long           wait_table_hash_nr_entries;
        unsigned long           wait_table_bits;
 
+       /* Write-intensive fields used from the page allocator */
        ZONE_PADDING(_pad1_)
+
        /* free areas of different sizes */
        struct free_area        free_area[MAX_ORDER];
 
        /* zone flags, see below */
        unsigned long           flags;
 
-       /* Write-intensive fields used from the page allocator */
+       /* Primarily protects free_area */
        spinlock_t              lock;
 
+       /* Write-intensive fields used by compaction and vmstats. */
        ZONE_PADDING(_pad2_)
 
-       /* Write-intensive fields used by page reclaim */
-
        /*
         * When free pages are below this point, additional steps are taken
         * when reading the number of free pages to avoid per-cpu counter