Skip to content

Commit fbf3a5c

Browse files
Oleksandr Tyshchenkojgross1
authored andcommitted
xen/unpopulated-alloc: Drop check for virt_addr_valid() in fill_list()
If memremap_pages() succeeds the range is guaranteed to have proper page table, there is no need for an additional virt_addr_valid() check. Signed-off-by: Oleksandr Tyshchenko <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 335e4dd commit fbf3a5c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/xen/unpopulated-alloc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ static int fill_list(unsigned int nr_pages)
8585
for (i = 0; i < alloc_pages; i++) {
8686
struct page *pg = virt_to_page(vaddr + PAGE_SIZE * i);
8787

88-
BUG_ON(!virt_addr_valid(vaddr + PAGE_SIZE * i));
8988
pg->zone_device_data = page_list;
9089
page_list = pg;
9190
list_count++;

0 commit comments

Comments
 (0)