Skip to content

Commit

Permalink
mm-page_alloc-remotely-drain-per-cpu-lists-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: braces {} are not necessary for any arm of this statement
torvalds#158: FILE: mm/page_alloc.c:3211:
+		if (zone) {
[...]
+		} else {
[...]

total: 0 errors, 1 warnings, 115 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

./patches/mm-page_alloc-remotely-drain-per-cpu-lists.patch has style problems, please review.

NOTE: If any of the 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@techsingularity.net>

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 committed Jun 7, 2022
1 parent 07267e8 commit 641e089
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3233,11 +3233,10 @@ static void __drain_all_pages(struct zone *zone, bool force_all_cpus)
}

for_each_cpu(cpu, &cpus_with_pcps) {
if (zone) {
if (zone)
drain_pages_zone(cpu, zone);
} else {
else
drain_pages(cpu);
}
}

mutex_unlock(&pcpu_drain_mutex);
Expand Down

0 comments on commit 641e089

Please sign in to comment.