linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] mm: swap: Call count_mthp_stat() outside ifdef CONFIG_TRANSPARENT_HUGEPAGE.
@ 2024-10-02 17:30 Kanchana P Sridhar
  2024-10-02 18:19 ` Nhat Pham
  2024-10-02 19:01 ` Yosry Ahmed
  0 siblings, 2 replies; 4+ messages in thread
From: Kanchana P Sridhar @ 2024-10-02 17:30 UTC (permalink / raw)
  To: linux-kernel, linux-mm, hannes, yosryahmed, nphamcs,
	chengming.zhou, ryan.roberts, ying.huang, 21cnbao, akpm
  Cc: wajdi.k.feghali, vinodh.gopal, kanchana.p.sridhar

This patch moves the call to count_mthp_stat() in count_swpout_vm_event()
to be outside the "ifdef CONFIG_TRANSPARENT_HUGEPAGE" based on changes
made in commit 246d3aa3e53151fa150f10257ddd8a4facd31a6a ("mm: cleanup
 count_mthp_stat() definition").

Signed-off-by: Kanchana P Sridhar <kanchana.p.sridhar@intel.com>
---
 mm/page_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_io.c b/mm/page_io.c
index 4aa34862676f..a28d28b6b3ce 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -289,8 +289,8 @@ static inline void count_swpout_vm_event(struct folio *folio)
 		count_memcg_folio_events(folio, THP_SWPOUT, 1);
 		count_vm_event(THP_SWPOUT);
 	}
-	count_mthp_stat(folio_order(folio), MTHP_STAT_SWPOUT);
 #endif
+	count_mthp_stat(folio_order(folio), MTHP_STAT_SWPOUT);
 	count_memcg_folio_events(folio, PSWPOUT, folio_nr_pages(folio));
 	count_vm_events(PSWPOUT, folio_nr_pages(folio));
 }
-- 
2.27.0



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

end of thread, other threads:[~2024-10-02 19:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-02 17:30 [PATCH v1] mm: swap: Call count_mthp_stat() outside ifdef CONFIG_TRANSPARENT_HUGEPAGE Kanchana P Sridhar
2024-10-02 18:19 ` Nhat Pham
2024-10-02 19:01 ` Yosry Ahmed
2024-10-02 19:30   ` Sridhar, Kanchana P

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