From: Nick Piggin Date: Wed, 14 Jan 2009 06:28:16 +0000 (+0100) Subject: mm: fix assertion X-Git-Tag: MMI-PSA29.97-13-9~29862 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18e6959c385f3edf3991fa6662a53dac4eb10d5b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mm: fix assertion This assertion is incorrect for lockless pagecache. By definition if we have an unpinned page that we are trying to take a speculative reference to, it may become the tail of a compound page at any time (if it is freed, then reallocated as a compound page). It was still a valid assertion for the vmscan.c LRU isolation case, but it doesn't seem incredibly helpful... if somebody wants it, they can put it back directly where it applies in the vmscan code. Signed-off-by: Nick Piggin Signed-off-by: Linus Torvalds --- diff --git a/include/linux/mm.h b/include/linux/mm.h index b91a73fd1bcc..e8ddc98b8405 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -260,7 +260,6 @@ static inline int put_page_testzero(struct page *page) */ static inline int get_page_unless_zero(struct page *page) { - VM_BUG_ON(PageTail(page)); return atomic_inc_not_zero(&page->_count); }