On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> wrote: > + if (PageTransHuge(page)) { > + int i; > + > + for (i = 0; i < HPAGE_CACHE_NR; i++) > + radix_tree_delete(&mapping->page_tree, page->index + i); Move the below page_cache_release for tail page here, please. > + nr = HPAGE_CACHE_NR; [...] > + if (PageTransHuge(page)) > + for (i = 1; i < HPAGE_CACHE_NR; i++) > + page_cache_release(page + i); > page_cache_release(page); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>