The folio_zero_range() already flush dcache inside, so remove another flush_dcache_folio() in shmem_writepage(). Fixes: f530ed0e2d01 ("shmem: convert shmem_writepage() to use a folio throughout") Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> --- mm/shmem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index 163ca6107bbd..bd5ba016567d 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -1533,7 +1533,6 @@ static int shmem_writepage(struct page *page, struct writeback_control *wbc) goto redirty; } folio_zero_range(folio, 0, folio_size(folio)); - flush_dcache_folio(folio); folio_mark_uptodate(folio); } -- 2.27.0