@@ -641,7 +641,7 @@ int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
*/
#ifdef CONFIG_HIGHMEM
- if (PageHighMem(page) && glob->zone_highmem != NULL)
+ if (PageHighMemZone(page) && glob->zone_highmem != NULL)
zone = glob->zone_highmem;
#else
if (glob->zone_dma32 && page_to_pfn(page) > 0x00100000UL)
@@ -656,7 +656,7 @@ void ttm_mem_global_free_page(struct ttm_mem_global *glob, struct page *page,
struct ttm_mem_zone *zone = NULL;
#ifdef CONFIG_HIGHMEM
- if (PageHighMem(page) && glob->zone_highmem != NULL)
+ if (PageHighMemZone(page) && glob->zone_highmem != NULL)
zone = glob->zone_highmem;
#else
if (glob->zone_dma32 && page_to_pfn(page) > 0x00100000UL)
@@ -530,7 +530,7 @@ static int ttm_alloc_new_pages(struct list_head *pages, gfp_t gfp_flags,
/* gfp flags of highmem page should never be dma32 so we
* we should be fine in such case
*/
- if (PageHighMem(p))
+ if (PageHighMemZone(p))
continue;
#endif
@@ -747,7 +747,7 @@ static int ttm_dma_pool_alloc_new_pages(struct dma_pool *pool,
/* gfp flags of highmem page should never be dma32 so we
* we should be fine in such case
*/
- if (PageHighMem(p))
+ if (PageHighMemZone(p))
continue;
#endif
@@ -119,7 +119,7 @@ static int ttm_tt_set_page_caching(struct page *p,
{
int ret = 0;
- if (PageHighMem(p))
+ if (PageHighMemZone(p))
return 0;
if (c_old != tt_cached) {