projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9595b3
)
mm: add folio_test_movable()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Fri, 13 May 2022 03:23:05 +0000
(20:23 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:17 +0000
(07:20 -0700)
This is the folio equivalent of PageMovable() which is needed to
convert mm/migrate.c to folios.
Link:
https://lkml.kernel.org/r/20220504182857.4013401-26-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/migrate.h
patch
|
blob
|
history
diff --git
a/include/linux/migrate.h
b/include/linux/migrate.h
index
2707bfd
..
069a89e
100644
(file)
--- a/
include/linux/migrate.h
+++ b/
include/linux/migrate.h
@@
-105,6
+105,11
@@
static inline void __ClearPageMovable(struct page *page)
}
#endif
+static inline bool folio_test_movable(struct folio *folio)
+{
+ return PageMovable(&folio->page);
+}
+
#ifdef CONFIG_NUMA_BALANCING
extern int migrate_misplaced_page(struct page *page,
struct vm_area_struct *vma, int node);