madvise_dontneed_single_vma() supports both batched tlb flushes and unbatched tlb flushes use cases depending on received tlb parameter's value. Both were supported for safe and fine transition of the usages from the unbatched flushed to the batched ones. Now the transition is done, and therefore there is no real unbatched tlb flushes use case. Remove the code for supporting the no more being used input case. Signed-off-by: SeongJae Park <sj@xxxxxxxxxx> --- mm/madvise.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/madvise.c b/mm/madvise.c index 0d292b8e1a0e..1dd2c25c83d8 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -866,10 +866,7 @@ static long madvise_dontneed_single_vma(struct mmu_gather *tlb, .even_cows = true, }; - if (!tlb) - zap_page_range_single(vma, start, end - start, &details); - else - unmap_vma_single(tlb, vma, start, end - start, &details); + unmap_vma_single(tlb, vma, start, end - start, &details); return 0; } -- 2.39.5