mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 07:42:07 +00:00
mm: migrate: change to use bool type for 'page_was_mapped'
Change to use bool type for 'page_was_mapped' variable making it more readable. Link: https://lkml.kernel.org/r/ce1279df18d2c163998c403e0b5ec6d3f6f90f7a.1629447552.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> Reviewed-by: Yang Shi <shy828301@gmail.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
68a9843f14
commit
213ecb3157
@ -960,7 +960,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage,
|
||||
int force, enum migrate_mode mode)
|
||||
{
|
||||
int rc = -EAGAIN;
|
||||
int page_was_mapped = 0;
|
||||
bool page_was_mapped = false;
|
||||
struct anon_vma *anon_vma = NULL;
|
||||
bool is_lru = !__PageMovable(page);
|
||||
|
||||
@ -1063,7 +1063,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage,
|
||||
VM_BUG_ON_PAGE(PageAnon(page) && !PageKsm(page) && !anon_vma,
|
||||
page);
|
||||
try_to_migrate(page, 0);
|
||||
page_was_mapped = 1;
|
||||
page_was_mapped = true;
|
||||
}
|
||||
|
||||
if (!page_mapped(page))
|
||||
|
Loading…
Reference in New Issue
Block a user