mm/folio.c | 2 ++ 1 file changed, 2 insertions(+)
From: Ackerley Tng <ackerleytng@google.com>
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.
Link: https://lore.kernel.org/lkml/bd6c9c74-e374-a9d3-ba1f-8b6f430894fc@google.com/T/#u
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Suggested-by: David Hildenbrand <david@kernel.org>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Signed-off-by: Ackerley Tng <ackerleytng@google.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
---
Hoping for 7.3-rc2, which would make my life easier: thanks!
mm/folio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/folio.c b/mm/folio.c
index c02dcea9c03c..50a6dbe55998 100644
--- a/mm/folio.c
+++ b/mm/folio.c
@@ -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);
--
base-commiti: cee9395acd8043be0644b25c34bfa86623f2b935
On Tue, Sep 01, 2026, Hugh Dickins wrote: > From: Ackerley Tng <ackerleytng@google.com> > > 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. > > Link: https://lore.kernel.org/lkml/bd6c9c74-e374-a9d3-ba1f-8b6f430894fc@google.com/T/#u > Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org> > Suggested-by: David Hildenbrand <david@kernel.org> > Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev> > Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com> > Signed-off-by: Ackerley Tng <ackerleytng@google.com> > Signed-off-by: Hugh Dickins <hughd@google.com> > --- > 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. > mm/folio.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/mm/folio.c b/mm/folio.c > index c02dcea9c03c..50a6dbe55998 100644 > --- a/mm/folio.c > +++ b/mm/folio.c > @@ -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); > > -- > base-commiti: cee9395acd8043be0644b25c34bfa86623f2b935
© 2016 - 2026 Red Hat, Inc.