Skip to content

Commit

Permalink
page_bench04: having issues with bulk API not retuning size requested
Browse files Browse the repository at this point in the history
  • Loading branch information
netoptimizer committed Mar 10, 2017
1 parent 24ddac2 commit d260132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/mm/bench/page_bench04_bulk.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/list.h>
#include <linux/net.h> /* net_warn_ratelimited */

static int verbose=1;

Expand Down Expand Up @@ -96,7 +97,8 @@ static int time_bulk_page_alloc_free(
n = alloc_pages_bulk(gfp, order, bulk, &list);

if (verbose && (n < bulk))
pr_warn("%s(): got less pages: %lu/%lu\n",
net_warn_ratelimited(
"%s(): got less pages: %lu/%lu\n",
__func__, n, bulk);
barrier();
free_pages_bulk(&list);
Expand Down

0 comments on commit d260132

Please sign in to comment.