]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-reduce-the-amount-of-work-done-when-updating-min_free_kbytes-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 16 Nov 2011 23:41:27 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 18 Nov 2011 03:49:52 +0000 (14:49 +1100)
Cc: Mel Gorman <mgorman@suse.de>
WARNING: line over 80 characters
#42: FILE: mm/page_alloc.c:3464:
+ /* Blocks with reserved pages will never free, skip them. */

WARNING: line over 80 characters
#61: FILE: mm/page_alloc.c:3477:
+ set_pageblock_migratetype(page, MIGRATE_RESERVE);

WARNING: line over 80 characters
#62: FILE: mm/page_alloc.c:3478:
+ move_freepages_block(zone, page, MIGRATE_RESERVE);

total: 0 errors, 3 warnings, 44 lines checked

./patches/mm-reduce-the-amount-of-work-done-when-updating-min_free_kbytes.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index 5ac72794e4039dfcd5c102aaafede0b7713f5972..8e11ff21014a31700c491ba7b2154ff27bc79ac4 100644 (file)
@@ -3451,7 +3451,10 @@ static void setup_zone_migrate_reserve(struct zone *zone)
 
                /* Only test what is necessary when the reserves are not met */
                if (reserve > 0) {
-                       /* Blocks with reserved pages will never free, skip them. */
+                       /*
+                        * Blocks with reserved pages will never free, skip
+                        * them.
+                        */
                        block_end_pfn = min(pfn + pageblock_nr_pages, end_pfn);
                        if (pageblock_is_reserved(pfn, block_end_pfn))
                                continue;
@@ -3464,8 +3467,10 @@ static void setup_zone_migrate_reserve(struct zone *zone)
 
                        /* Suitable for reserving if this block is movable */
                        if (block_migratetype == MIGRATE_MOVABLE) {
-                               set_pageblock_migratetype(page, MIGRATE_RESERVE);
-                               move_freepages_block(zone, page, MIGRATE_RESERVE);
+                               set_pageblock_migratetype(page,
+                                                       MIGRATE_RESERVE);
+                               move_freepages_block(zone, page,
+                                                       MIGRATE_RESERVE);
                                reserve--;
                                continue;
                        }