mm: introduce page reference manipulation functions
[cascardo/linux.git] / drivers / block / aoe / aoecmd.c
index d048d20..437b3a8 100644 (file)
@@ -875,7 +875,7 @@ bio_pageinc(struct bio *bio)
                 * compound pages is no longer allowed by the kernel.
                 */
                page = compound_head(bv.bv_page);
-               atomic_inc(&page->_count);
+               page_ref_inc(page);
        }
 }
 
@@ -888,7 +888,7 @@ bio_pagedec(struct bio *bio)
 
        bio_for_each_segment(bv, bio, iter) {
                page = compound_head(bv.bv_page);
-               atomic_dec(&page->_count);
+               page_ref_dec(page);
        }
 }