Replace bzero(..., PAGE_SIZE) by pagezero(). Ultimately, they use the same method for bulk zeroing, but the generality of bzero() requires size and alignment checks that pagezero() does not.
Eliminate an unnecessary #include.
Differential D26876
Micro-optimize arm64's uma_small_alloc() alc on Oct 19 2020, 11:38 PM. Authored by Tags None Referenced Files
Details Replace bzero(..., PAGE_SIZE) by pagezero(). Ultimately, they use the same method for bulk zeroing, but the generality of bzero() requires size and alignment checks that pagezero() does not. Eliminate an unnecessary #include.
Diff Detail
Event TimelineComment Actions Most other implementations also use bzero(), though on them pagezero() is nothing more than bzero(va, PAGE_SIZE) anyway. |