Thread (5 messages) 5 messages, 4 authors, 2013-08-16

Re: [RFC PATCH] Fix aio performance regression for database caused by THP

From: Khalid Aziz <hidden>
Date: 2013-08-16 14:15:05
Also in: lkml

On 08/16/2013 03:04 AM, Kirill A. Shutemov wrote:
On Thu, Aug 15, 2013 at 12:13:09PM -0600, Khalid Aziz wrote:
quoted
-	if (likely(page != page_head && get_page_unless_zero(page_head))) {
+	/*
+	 * If this is a hugetlbfs page, it can not be split under
+	 * us. Simply increment refcount for head page
+	 */
+	if (PageHuge(page)) {
+		page_head = compound_head(page);
+		atomic_inc(&page_head->_count);
+		got = true;
Why not just return here and don't increase indentantion level for rest of
the function?
Good point.

Andrew, I can rework the patch if you would like.

Thanks,
Khalid

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help