Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~shefty/rdma-dev.git] / drivers / virtio / virtio_balloon.c
index 2a70558b36ea6c031f48027e6eb503811d3540ce..d19fe3e323b4dd17ad3cf43b099bdac7cf31aa5c 100644 (file)
@@ -139,10 +139,9 @@ static void fill_balloon(struct virtio_balloon *vb, size_t num)
                struct page *page = balloon_page_enqueue(vb_dev_info);
 
                if (!page) {
-                       if (printk_ratelimit())
-                               dev_printk(KERN_INFO, &vb->vdev->dev,
-                                          "Out of puff! Can't get %u pages\n",
-                                          VIRTIO_BALLOON_PAGES_PER_PAGE);
+                       dev_info_ratelimited(&vb->vdev->dev,
+                                            "Out of puff! Can't get %u pages\n",
+                                            VIRTIO_BALLOON_PAGES_PER_PAGE);
                        /* Sleep for at least 1/5 of a second before retry. */
                        msleep(200);
                        break;