diff options
-rw-r--r-- | drivers/virtio/virtio_balloon.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 0908e6044333..586395cca5fe 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c | |||
@@ -130,10 +130,9 @@ static void fill_balloon(struct virtio_balloon *vb, size_t num) | |||
130 | struct page *page = alloc_page(GFP_HIGHUSER | __GFP_NORETRY | | 130 | struct page *page = alloc_page(GFP_HIGHUSER | __GFP_NORETRY | |
131 | __GFP_NOMEMALLOC | __GFP_NOWARN); | 131 | __GFP_NOMEMALLOC | __GFP_NOWARN); |
132 | if (!page) { | 132 | if (!page) { |
133 | if (printk_ratelimit()) | 133 | dev_info_ratelimited(&vb->vdev->dev, |
134 | dev_printk(KERN_INFO, &vb->vdev->dev, | 134 | "Out of puff! Can't get %zu pages\n", |
135 | "Out of puff! Can't get %zu pages\n", | 135 | num); |
136 | num); | ||
137 | /* Sleep for at least 1/5 of a second before retry. */ | 136 | /* Sleep for at least 1/5 of a second before retry. */ |
138 | msleep(200); | 137 | msleep(200); |
139 | break; | 138 | break; |