Message ID | 20200204142514.15826-8-jack@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm: Speedup page cache truncation | expand |
diff --git a/mm/khugepaged.c b/mm/khugepaged.c index b679908743cb..13e061581cd0 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -1800,7 +1800,7 @@ static void collapse_file(struct mm_struct *mm, break; nr_none--; /* Put holes back where they were */ - xas_store(&xas, NULL); + xas_erase(&xas); continue; }
When undoing failed collapse of ordinary pages into a huge page, use xas_erase() to explicitly clear any xarray marks that may have been added to entries. Signed-off-by: Jan Kara <jack@suse.cz> --- mm/khugepaged.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)