ANDROID: export walk_page_range and swp_swap_info
Export walk_page_range and swp_swap_info for reading swap from backing device to zram. Bug: 225273514 Signed-off-by: Liujie Xie <xieliujie@oppo.com> Change-Id: If888cfc2823d8003b62bdb177740643696cf6f7e
This commit is contained in:

committed by
Suren Baghdasaryan

parent
71d560e017
commit
d9845e9e5c
@@ -430,6 +430,7 @@ int walk_page_range(struct mm_struct *mm, unsigned long start,
|
|||||||
} while (start = next, start < end);
|
} while (start = next, start < end);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(walk_page_range);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Similar to walk_page_range() but can walk any page tables even if they are
|
* Similar to walk_page_range() but can walk any page tables even if they are
|
||||||
|
@@ -3560,6 +3560,7 @@ struct swap_info_struct *swp_swap_info(swp_entry_t entry)
|
|||||||
{
|
{
|
||||||
return swap_type_to_swap_info(swp_type(entry));
|
return swap_type_to_swap_info(swp_type(entry));
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(swp_swap_info);
|
||||||
|
|
||||||
struct swap_info_struct *page_swap_info(struct page *page)
|
struct swap_info_struct *page_swap_info(struct page *page)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user