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:
5e6c94a
)
Revert "mm: avoid tail page refcounting on non-THP compound pages"
author
Linus Torvalds
<
[email protected]
>
Wed, 22 Apr 2015 16:44:36 +0000
(09:44 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 22 Apr 2015 16:44:36 +0000
(09:44 -0700)
This reverts commit
8d63d99a5dfbdb997d12dd3c07b2070ca723db3b
.
It causes in VM mapping refcount errors:
page:
ffffea0010a15040
count:0 mapcount:1 mapping: (null) index:0x0
flags: 0x8000000000008014(referenced|dirty|tail)
page dumped because: VM_BUG_ON_PAGE(page_mapcount(page) != 0)
------------[ cut here ]------------
kernel BUG at mm/swap.c:134!
as reported by Borislav Petkov
Reported-and-tested-by: Borislav Petkov <
[email protected]
>
Cc: Kirill A. Shutemov <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Cc: Andrea Arcangeli <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/mm.h
patch
|
blob
|
history
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index 8b086070c3a585d2558467bc547ac450bbaac699..0755b9fd03a7d936e805efb71cfc1d371ddea0d6 100644
(file)
--- a/
include/linux/mm.h
+++ b/
include/linux/mm.h
@@
-499,7
+499,7
@@
static inline int page_count(struct page *page)
static inline bool __compound_tail_refcounted(struct page *page)
{
- return
PageAnon(page) &&
!PageSlab(page) && !PageHeadHuge(page);
+ return !PageSlab(page) && !PageHeadHuge(page);
}
/*