linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: shmem: avoid repeated flush dcache in shmem_writepage()
@ 2024-10-17 14:25 Kefeng Wang
  2024-10-17 14:25 ` [PATCH] mm: shmem: convert to use folio_zero_range() Kefeng Wang
  0 siblings, 1 reply; 30+ messages in thread
From: Kefeng Wang @ 2024-10-17 14:25 UTC (permalink / raw)
  To: Andrew Morton, Hugh Dickins
  Cc: David Hildenbrand, Baolin Wang, Matthew Wilcox, linux-mm, Kefeng Wang

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 --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



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-10-30  1:29 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-17 14:25 [PATCH] mm: shmem: avoid repeated flush dcache in shmem_writepage() Kefeng Wang
2024-10-17 14:25 ` [PATCH] mm: shmem: convert to use folio_zero_range() Kefeng Wang
2024-10-17 15:09   ` Matthew Wilcox
2024-10-18  5:20     ` Kefeng Wang
2024-10-18  5:23       ` Barry Song
2024-10-18  7:32         ` Kefeng Wang
2024-10-18  7:47           ` Kefeng Wang
2024-10-21  4:15             ` Barry Song
2024-10-21  5:16               ` Kefeng Wang
2024-10-21  5:38                 ` Barry Song
2024-10-21  6:09                   ` Kefeng Wang
2024-10-21  7:47                     ` Barry Song
2024-10-21  7:55                       ` Barry Song
2024-10-21  8:14                         ` Kefeng Wang
2024-10-21  9:17                           ` Barry Song
2024-10-21 15:33                             ` Kefeng Wang
2024-10-21 20:32                               ` Barry Song
2024-10-22 15:10                                 ` Kefeng Wang
2024-10-22 22:56                                   ` Barry Song
2024-10-24 10:10                                     ` Kefeng Wang
2024-10-25  2:59                                       ` Huang, Ying
2024-10-25  7:42                                         ` Kefeng Wang
2024-10-25  7:47                                           ` Huang, Ying
2024-10-25 10:21                                             ` Kefeng Wang
2024-10-25 12:21                                               ` Huang, Ying
2024-10-25 13:35                                                 ` Kefeng Wang
2024-10-28  2:39                                                   ` Huang, Ying
2024-10-28  6:37                                                     ` Kefeng Wang
2024-10-28 11:41                                                       ` Kefeng Wang
2024-10-30  1:26                                                         ` Huang, Ying

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox