Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / mm / migrate.c
index 53ab6398e7a2a2d3f122db43f0c36fbf62e562f2..9baf41c877ffb98595aac0834b8aa43aedd6dc76 100644 (file)
@@ -1171,6 +1171,7 @@ int migrate_pages(struct list_head *from, new_page_t get_new_page,
 
                        switch(rc) {
                        case -ENOMEM:
+                               nr_failed++;
                                goto out;
                        case -EAGAIN:
                                retry++;