Re: [PATCH v3 2/3] RISC-V: Issue a tlb page flush if possible

From: Christoph Hellwig
Date: Wed Aug 21 2019 - 21:50:32 EST


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.