Thread (16 messages) 16 messages, 2 authors, 2020-12-23

Re: [PATCH v11 10/11] mm/hugetlb: Gather discrete indexes of tail page

flat view

From: Oscar Salvador <osalvador@suse.de>
Date: 2020-12-22 16:30:59
Also in: linux-fsdevel, linux-mm, lkml

On Tue, Dec 22, 2020 at 10:24:39PM +0800, Muchun Song wrote:
quoted hunk ↗ jump to hunk
+#else
+static inline void hwpoison_subpage_deliver(struct hstate *h, struct page *head)
+{
+}
+
+static inline void hwpoison_subpage_set(struct hstate *h, struct page *head,
+					struct page *page)
+{
+	if (PageHWPoison(head) && page != head) {
+		/*
+		 * Move PageHWPoison flag from head page to the raw error page,
+		 * which makes any subpages rather than the error page reusable.
+		 */
+		SetPageHWPoison(page);
+		ClearPageHWPoison(head);
+	}
+}
+#endif
Sorry, I guess I should have made a more clear statement.
This patch should really be about changing the numeric index to its symbolic
names, so the #ifdef handling of hwpoison_subpage_* should have been gone into
patch#6.

I will have a closer look later on though.

-- 
Oscar Salvador
SUSE L3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help