projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77bf45e
)
mm: downgrade VM_BUG in isolate_lru_page() to warning
author
Kirill A. Shutemov
<
[email protected]
>
Fri, 5 Feb 2016 23:36:36 +0000
(15:36 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Feb 2016 02:10:40 +0000
(18:10 -0800)
Calling isolate_lru_page() is wrong and shouldn't happen, but it not
nessesary fatal: the page just will not be isolated if it's not on LRU.
Let's downgrade the VM_BUG_ON_PAGE() to WARN_RATELIMIT().
Signed-off-by: Kirill A. Shutemov <
[email protected]
>
Cc: Dmitry Vyukov <
[email protected]
>
Cc: Vlastimil Babka <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: Naoya Horiguchi <
[email protected]
>
Acked-by: Michal Hocko <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index eb3dd37ccd7c727dcc0b6030f62c183097b956bb..71b1c29948dba30aab0a894ddc7c84eb62acde2b 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1443,7
+1443,7
@@
int isolate_lru_page(struct page *page)
int ret = -EBUSY;
VM_BUG_ON_PAGE(!page_count(page), page);
-
VM_BUG_ON_PAGE(PageTail(page), page
);
+
WARN_RATELIMIT(PageTail(page), "trying to isolate tail page"
);
if (PageLRU(page)) {
struct zone *zone = page_zone(page);