mm: introduce page reference manipulation functions
[linux-2.6-block.git] / arch / powerpc / mm / pgtable_64.c
index cdf2123d46db4813a4e87f30d29f8da359c313d9..d9cc66cbdbb7657701be8c1d0bc1e176fe504077 100644 (file)
@@ -403,7 +403,7 @@ static pte_t *__alloc_for_cache(struct mm_struct *mm, int kernel)
         * count.
         */
        if (likely(!mm->context.pte_frag)) {
-               atomic_set(&page->_count, PTE_FRAG_NR);
+               set_page_count(page, PTE_FRAG_NR);
                mm->context.pte_frag = ret + PTE_FRAG_SIZE;
        }
        spin_unlock(&mm->page_table_lock);