projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf53d6f
)
VM: allow get_page_unless_zero on compound pages
author
Christoph Lameter
<clameter@sgi.com>
Tue, 5 Feb 2008 06:28:35 +0000
(22:28 -0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:14 +0000
(09:44 -0800)
Both slab defrag and the large blocksize patches need to ability to take
refcounts on compound pages. May be useful in other places as well.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index f28a0338574f58ec41cb74888ebe31fff4c7c9d9..bcbe6979ff65be1c392bfb8238e0a911b938de48 100644
(file)
--- a/
include/linux/mm.h
+++ b/
include/linux/mm.h
@@
-227,7
+227,7
@@
static inline int put_page_testzero(struct page *page)
*/
static inline int get_page_unless_zero(struct page *page)
{
- VM_BUG_ON(Page
Compound
(page));
+ VM_BUG_ON(Page
Tail
(page));
return atomic_inc_not_zero(&page->_count);
}