x86, mm: Fix bogus whitespace in sync_global_pgds()
Whitespace cleanup only. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
a416e9e1dd
commit
44235dcde4
|
@ -103,28 +103,28 @@ __setup("noexec32=", nonx32_setup);
|
||||||
*/
|
*/
|
||||||
void sync_global_pgds(unsigned long start, unsigned long end)
|
void sync_global_pgds(unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
unsigned long address;
|
unsigned long address;
|
||||||
|
|
||||||
for (address = start; address <= end; address += PGDIR_SIZE) {
|
for (address = start; address <= end; address += PGDIR_SIZE) {
|
||||||
const pgd_t *pgd_ref = pgd_offset_k(address);
|
const pgd_t *pgd_ref = pgd_offset_k(address);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct page *page;
|
struct page *page;
|
||||||
|
|
||||||
if (pgd_none(*pgd_ref))
|
if (pgd_none(*pgd_ref))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
spin_lock_irqsave(&pgd_lock, flags);
|
spin_lock_irqsave(&pgd_lock, flags);
|
||||||
list_for_each_entry(page, &pgd_list, lru) {
|
list_for_each_entry(page, &pgd_list, lru) {
|
||||||
pgd_t *pgd;
|
pgd_t *pgd;
|
||||||
pgd = (pgd_t *)page_address(page) + pgd_index(address);
|
pgd = (pgd_t *)page_address(page) + pgd_index(address);
|
||||||
if (pgd_none(*pgd))
|
if (pgd_none(*pgd))
|
||||||
set_pgd(pgd, *pgd_ref);
|
set_pgd(pgd, *pgd_ref);
|
||||||
else
|
else
|
||||||
BUG_ON(pgd_page_vaddr(*pgd)
|
BUG_ON(pgd_page_vaddr(*pgd)
|
||||||
!= pgd_page_vaddr(*pgd_ref));
|
!= pgd_page_vaddr(*pgd_ref));
|
||||||
}
|
}
|
||||||
spin_unlock_irqrestore(&pgd_lock, flags);
|
spin_unlock_irqrestore(&pgd_lock, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue