ANDROID: mm: page_pinner: remove WARN_ON_ONCE
There are several path the WARN_ON_ONCE could be triggered but it doesn't mean real bug since we intentionally allow it to make code simple at this moment. So just remove the warnings to prevent folks confused it. Bug: 192475091 Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I7d14c8490db841f61b01fe7c16b406c9b1850c46
This commit is contained in:
parent
9a453100fc
commit
849f048050
1 changed files with 0 additions and 3 deletions
|
|
@ -157,12 +157,9 @@ void __reset_page_pinner(struct page *page, unsigned int order, bool free)
|
|||
|
||||
page_pinner = get_page_pinner(page_ext);
|
||||
if (free) {
|
||||
WARN_ON_ONCE(atomic_read(&page_pinner->count));
|
||||
atomic_set(&page_pinner->count, 0);
|
||||
__clear_bit(PAGE_EXT_PINNER_MIGRATION_FAILED, &page_ext->flags);
|
||||
} else {
|
||||
WARN_ON_ONCE(atomic_dec_if_positive(
|
||||
&page_pinner->count) < 0);
|
||||
check_longterm_pin(page_pinner, page);
|
||||
}
|
||||
clear_bit(PAGE_EXT_GET, &page_ext->flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue