mm/folio: EXPORT_SYMBOL_FOR_KVM(lru_cache_drain_for_folio)
Subsystems (3)
PATCH 1/1 mm/folio: EXPORT_SYMBOL_FOR_KVM(lru_cache_drain_for_folio)
From: Ackerley Tng <[email protected]>
To simplify independent development in the KVM and MM subsystems, now export to KVM the lru_cache_drain_for_folio() which MM added in 7.3-rc1.
Suggested-by David Hildenbrand <[email protected]>
Reviewed-by Fuad Tabba <[email protected]>
Reviewed-by Binbin Wu <[email protected]>
Signed-off-by Ackerley Tng <[email protected]>
Signed-off-by Hugh Dickins <[email protected]>
---
Hoping for 7.3-rc2, which would make my life easier: thanks!
mm/folio.c | 2 ++ 1 file changed, 2 insertions(+)
mm/folio.c +2 -0
@@ -33,6 +33,7 @@#include <linux/page_idle.h> #include <linux/local_lock.h> #include <linux/buffer_head.h> +#include <linux/kvm_types.h> #include "internal.h" #include "page_alloc.h"
@@ -926,6 +927,7 @@ void lru_cache_drain_for_folio(const struct folio *folio, *drained =LRU_CACHE_DRAINED_ALL ; } } +EXPORT_SYMBOL_FOR_KVM (lru_cache_drain_for_folio);atomic_t lru_disable_count =ATOMIC_INIT (0 );
Signature · 1 line
base-commiti: cee9395acd8043be0644b25c34bfa86623f2b935
Sean Christopherson
reviewerQuoted 12 lines · Hugh Dickins
From: Ackerley Tng <[email protected]>
To simplify independent development in the KVM and MM subsystems, now export to KVM the
lru_cache_drain_for_folio()which MM added in 7.3-rc1.Suggested-by David Hildenbrand <[email protected]>Reviewed-by Fuad Tabba <[email protected]>Reviewed-by Binbin Wu <[email protected]>Signed-off-by Ackerley Tng <[email protected]>Signed-off-by Hugh Dickins <[email protected]>
Quoted 2 lines
---
Hoping for 7.3-rc2, which would make my life easier: thanks!
FWIW, squeezing this into rc2 would make my life (marginally) easier as well, as this is the only non-KVM change in Ackerley's guest_memfd series.
Quoted 25 lines
mm/folio.c | 2 ++ 1 file changed, 2 insertions(+)mm/folio.c +2
-0@@ -33,6 +33,7 @@#include <linux/page_idle.h> #include <linux/local_lock.h> #include <linux/buffer_head.h> +#include <linux/kvm_types.h> #include "internal.h" #include "page_alloc.h" @@ -926,6 +927,7 @@ void lru_cache_drain_for_folio(const struct folio *folio, *drained =LRU_CACHE_DRAINED_ALL ; } } +EXPORT_SYMBOL_FOR_KVM (lru_cache_drain_for_folio);atomic_t lru_disable_count =ATOMIC_INIT (0 );Signature · 1 line
base-commiti: cee9395acd8043be0644b25c34bfa86623f2b935