X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=mm%2Fpercpu.c;h=3f930018aa60dc075bc49f7283c57b2b3b6f0035;hb=52cfd503ad7176d23a5dd7af3981744feb60622f;hp=02ba91230b99269f45beea6387c165e042800347;hpb=9adcc4a127be6c979eae1ae34083261f2ec5dfec;p=firefly-linux-kernel-4.4.55.git diff --git a/mm/percpu.c b/mm/percpu.c index 02ba91230b99..3f930018aa60 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -258,7 +258,7 @@ static void __maybe_unused pcpu_next_pop(struct pcpu_chunk *chunk, /* * (Un)populated page region iterators. Iterate over (un)populated - * page regions betwen @start and @end in @chunk. @rs and @re should + * page regions between @start and @end in @chunk. @rs and @re should * be integer variables and will be set to start and end page index of * the current region. */ @@ -293,12 +293,8 @@ static void *pcpu_mem_alloc(size_t size) if (size <= PAGE_SIZE) return kzalloc(size, GFP_KERNEL); - else { - void *ptr = vmalloc(size); - if (ptr) - memset(ptr, 0, size); - return ptr; - } + else + return vzalloc(size); } /**