Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415070 > unrolled thread

[PATCHv9 16/32] vmscan: split file huge pages before paging them out

Started by"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
First post2016-06-06 16:10 +0200
Last post2016-06-06 16:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCHv9 16/32] vmscan: split file huge pages before paging them out "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2016-06-06 16:10 +0200

#1415070 — [PATCHv9 16/32] vmscan: split file huge pages before paging them out

From"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Date2016-06-06 16:10 +0200
Subject[PATCHv9 16/32] vmscan: split file huge pages before paging them out
Message-ID<rH3o7-5Yv-53@gated-at.bofh.it>
This is preparation of vmscan for file huge pages. We cannot write out
huge pages, so we need to split them on the way out.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 mm/vmscan.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index c4a2f4512fca..c2c56b922f32 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1055,8 +1055,14 @@ static unsigned long shrink_page_list(struct list_head *page_list,
 
 			/* Adding to swap updated mapping */
 			mapping = page_mapping(page);
+		} else if (unlikely(PageTransHuge(page))) {
+			/* Split file THP */
+			if (split_huge_page_to_list(page, page_list))
+				goto keep_locked;
 		}
 
+		VM_BUG_ON_PAGE(PageTransHuge(page), page);
+
 		/*
 		 * The page is mapped into the page tables of one or more
 		 * processes. Try to unmap it here.
-- 
2.8.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web