OSDN Git Service

Merge branch 'for-4.2/core' of git://git.kernel.dk/linux-block
[uclinux-h8/linux.git] / block / bounce.c
index 4bac725..3ab0bce 100644 (file)
@@ -218,8 +218,8 @@ bounce:
                if (page_to_pfn(page) <= queue_bounce_pfn(q) && !force)
                        continue;
 
-               inc_zone_page_state(to->bv_page, NR_BOUNCE);
                to->bv_page = mempool_alloc(pool, q->bounce_gfp);
+               inc_zone_page_state(to->bv_page, NR_BOUNCE);
 
                if (rw == WRITE) {
                        char *vto, *vfrom;