On Wed, Aug 21, 2019 at 05:46:43PM -0700, Atish Patra wrote: > + if (size <= PAGE_SIZE && size != -1) > + local_flush_tlb_page(start); > + else > + local_flush_tlb_all();
As Andreas pointed out (unsigned long)-1 is actually larger than PAGE_SIZE, so we don't need the extra check.