Re: [PATCH 2/2] mm: tlb: add tlb swap entries batch async release

From: zhiguojiang
Date: Wed Jul 31 2024 - 09:48:06 EST




在 2024/7/31 20:08, Arnd Bergmann 写道:
On Tue, Jul 30, 2024, at 13:44, Zhiguo Jiang wrote:

+
+
+extern bool __tlb_remove_swap_entries(struct mmu_gather *tlb,
+ swp_entry_t entry, int nr);
+#else
+bool __tlb_remove_swap_entries(struct mmu_gather *tlb,
+ swp_entry_t entry, int nr)
+{
+ return false;
+}
+#endif
To address the reported build regression, that function must
be annotated as 'static inline'.

Arnd
Hi Arnd,

I have added 'static inline' for __tlb_remove_swap_entries() in [PATCH v2 3/3].
Thanks for your nice guidance.
https://lore.kernel.org/linux-mm/20240731133318.527-1-justinjiang@xxxxxxxx/T/#t

Thanks
Zhiguo