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:
920c7a5
)
set_page_refcounted() VM_BUG_ON fix
author
Qi Yong
<
[email protected]
>
Tue, 5 Feb 2008 06:29:27 +0000
(22:29 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 5 Feb 2008 17:44:19 +0000
(09:44 -0800)
The current PageTail semantic is that a PageTail page is first a
PageCompound page. So remove the redundant PageCompound test in
set_page_refcounted().
Signed-off-by: Qi Yong <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/internal.h
patch
|
blob
|
history
diff --git
a/mm/internal.h
b/mm/internal.h
index 1e34d2462a48e7ecce22ccd279b4a1f5f9b1656b..5a9a6200e034fb43aad09efe34ac1b2e49825509 100644
(file)
--- a/
mm/internal.h
+++ b/
mm/internal.h
@@
-24,7
+24,7
@@
static inline void set_page_count(struct page *page, int v)
*/
static inline void set_page_refcounted(struct page *page)
{
- VM_BUG_ON(Page
Compound(page) && Page
Tail(page));
+ VM_BUG_ON(PageTail(page));
VM_BUG_ON(atomic_read(&page->_count));
set_page_count(page, 1);
}