diff options
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r-- | arch/x86/xen/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 6cbcf65609ad..126766d43aea 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -387,7 +387,7 @@ static void xen_do_pin(unsigned level, unsigned long pfn) | |||
387 | 387 | ||
388 | static int pin_page(struct page *page, enum pt_level level) | 388 | static int pin_page(struct page *page, enum pt_level level) |
389 | { | 389 | { |
390 | unsigned pgfl = test_and_set_bit(PG_pinned, &page->flags); | 390 | unsigned pgfl = TestSetPagePinned(page); |
391 | int flush; | 391 | int flush; |
392 | 392 | ||
393 | if (pgfl) | 393 | if (pgfl) |
@@ -468,7 +468,7 @@ void __init xen_mark_init_mm_pinned(void) | |||
468 | 468 | ||
469 | static int unpin_page(struct page *page, enum pt_level level) | 469 | static int unpin_page(struct page *page, enum pt_level level) |
470 | { | 470 | { |
471 | unsigned pgfl = test_and_clear_bit(PG_pinned, &page->flags); | 471 | unsigned pgfl = TestClearPagePinned(page); |
472 | 472 | ||
473 | if (pgfl && !PageHighMem(page)) { | 473 | if (pgfl && !PageHighMem(page)) { |
474 | void *pt = lowmem_page_address(page); | 474 | void *pt = lowmem_page_address(page); |