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:
Liujie Xie
2022-03-23 17:56:36 +08:00
committed by Suren Baghdasaryan
parent 71d560e017
commit d9845e9e5c
2 changed files with 2 additions and 0 deletions

View File

@@ -430,6 +430,7 @@ int walk_page_range(struct mm_struct *mm, unsigned long start,
} while (start = next, start < end);
return err;
}
EXPORT_SYMBOL_GPL(walk_page_range);
/*
* Similar to walk_page_range() but can walk any page tables even if they are

View File

@@ -3560,6 +3560,7 @@ struct swap_info_struct *swp_swap_info(swp_entry_t 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)
{