ANDROID: mm: export zone_watermark_ok
Export zone_watermark_ok and its friends so that modules can use it to determine if zone watermarks are ok in the system. Bug: 140294230 Change-Id: I958961150cf0c6db318f3e0daf1543ced00a9aab Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
This commit is contained in:

committed by
Suren Baghdasaryan

parent
3b672417ef
commit
e909fe79d2
@@ -3729,6 +3729,7 @@ bool zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark,
|
||||
return __zone_watermark_ok(z, order, mark, highest_zoneidx, alloc_flags,
|
||||
zone_page_state(z, NR_FREE_PAGES));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(zone_watermark_ok);
|
||||
|
||||
static inline bool zone_watermark_fast(struct zone *z, unsigned int order,
|
||||
unsigned long mark, int highest_zoneidx,
|
||||
@@ -3781,6 +3782,7 @@ bool zone_watermark_ok_safe(struct zone *z, unsigned int order,
|
||||
return __zone_watermark_ok(z, order, mark, highest_zoneidx, 0,
|
||||
free_pages);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(zone_watermark_ok_safe);
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
static bool zone_allows_reclaim(struct zone *local_zone, struct zone *zone)
|
||||
|
Reference in New Issue
Block a user