diff options
author | Dave Airlie <airlied@linux.ie> | 2004-05-30 23:34:23 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-05-30 23:34:23 +0000 |
commit | 412f9909c6127db1ab03716f74cc51c4ac3a603e (patch) | |
tree | 8c9d4217e70750a06b8284f09fd60067225b4714 /linux/ati_pcigart.h | |
parent | 43c244ebbad842d0ebf3756376bfc6ab1fd11b9f (diff) |
fixes from kernel: Make users of page->count use the provided macros
Diffstat (limited to 'linux/ati_pcigart.h')
-rw-r--r-- | linux/ati_pcigart.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/ati_pcigart.h b/linux/ati_pcigart.h index 221ceb6d7..9ad49c06d 100644 --- a/linux/ati_pcigart.h +++ b/linux/ati_pcigart.h @@ -68,7 +68,7 @@ static unsigned long DRM(ati_alloc_pcigart_table)( void ) page = virt_to_page( address ); for ( i = 0 ; i < ATI_PCIGART_TABLE_PAGES ; i++, page++ ) { - atomic_inc( &page->count ); + get_page(page); SetPageReserved( page ); } @@ -85,7 +85,7 @@ static void DRM(ati_free_pcigart_table)( unsigned long address ) page = virt_to_page( address ); for ( i = 0 ; i < ATI_PCIGART_TABLE_PAGES ; i++, page++ ) { - atomic_dec( &page->count ); + __put_page(page); ClearPageReserved( page ); } |