diff options
Diffstat (limited to 'mm/huge_memory.c')
| -rw-r--r-- | mm/huge_memory.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index a77c78a2b6b5..834f288b3769 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2377,6 +2377,7 @@ static void __split_huge_page_tail(struct page *head, int tail,  			page_tail);  	page_tail->mapping = head->mapping;  	page_tail->index = head->index + tail; +	page_tail->private = 0;  	/* Page flags must be visible before we make the page non-compound. */  	smp_wmb(); @@ -2672,8 +2673,7 @@ out_unlock:  	if (mapping)  		i_mmap_unlock_read(mapping);  out: -	/* Free any memory we didn't use */ -	xas_nomem(&xas, 0); +	xas_destroy(&xas);  	count_vm_event(!ret ? THP_SPLIT_PAGE : THP_SPLIT_PAGE_FAILED);  	return ret;  }  | 
