diff mbox series

mm: shmem: avoid repeated flush dcache in shmem_writepage()

Message ID 20241017142504.1170208-1-wangkefeng.wang@huawei.com (mailing list archive)
State New
Headers show
Series mm: shmem: avoid repeated flush dcache in shmem_writepage() | expand

Commit Message

Kefeng Wang Oct. 17, 2024, 2:25 p.m. UTC
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@huawei.com>
---
 mm/shmem.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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);
 	}