diff options
| -rw-r--r-- | drivers/block/loop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 66e8c3b94ef3..f70a230a2945 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
| @@ -237,7 +237,7 @@ static int __do_lo_send_write(struct file *file, | |||
| 237 | file_end_write(file); | 237 | file_end_write(file); |
| 238 | if (likely(bw == len)) | 238 | if (likely(bw == len)) |
| 239 | return 0; | 239 | return 0; |
| 240 | printk(KERN_ERR "loop: Write error at byte offset %llu, length %i.\n", | 240 | printk_ratelimited(KERN_ERR "loop: Write error at byte offset %llu, length %i.\n", |
| 241 | (unsigned long long)pos, len); | 241 | (unsigned long long)pos, len); |
| 242 | if (bw >= 0) | 242 | if (bw >= 0) |
| 243 | bw = -EIO; | 243 | bw = -EIO; |
| @@ -277,7 +277,7 @@ static int do_lo_send_write(struct loop_device *lo, struct bio_vec *bvec, | |||
| 277 | return __do_lo_send_write(lo->lo_backing_file, | 277 | return __do_lo_send_write(lo->lo_backing_file, |
| 278 | page_address(page), bvec->bv_len, | 278 | page_address(page), bvec->bv_len, |
| 279 | pos); | 279 | pos); |
| 280 | printk(KERN_ERR "loop: Transfer error at byte offset %llu, " | 280 | printk_ratelimited(KERN_ERR "loop: Transfer error at byte offset %llu, " |
| 281 | "length %i.\n", (unsigned long long)pos, bvec->bv_len); | 281 | "length %i.\n", (unsigned long long)pos, bvec->bv_len); |
| 282 | if (ret > 0) | 282 | if (ret > 0) |
| 283 | ret = -EIO; | 283 | ret = -EIO; |
| @@ -316,7 +316,7 @@ static int lo_send(struct loop_device *lo, struct bio *bio, loff_t pos) | |||
| 316 | out: | 316 | out: |
| 317 | return ret; | 317 | return ret; |
| 318 | fail: | 318 | fail: |
| 319 | printk(KERN_ERR "loop: Failed to allocate temporary page for write.\n"); | 319 | printk_ratelimited(KERN_ERR "loop: Failed to allocate temporary page for write.\n"); |
| 320 | ret = -ENOMEM; | 320 | ret = -ENOMEM; |
| 321 | goto out; | 321 | goto out; |
| 322 | } | 322 | } |
| @@ -345,7 +345,7 @@ lo_splice_actor(struct pipe_inode_info *pipe, struct pipe_buffer *buf, | |||
| 345 | size = p->bsize; | 345 | size = p->bsize; |
| 346 | 346 | ||
| 347 | if (lo_do_transfer(lo, READ, page, buf->offset, p->page, p->offset, size, IV)) { | 347 | if (lo_do_transfer(lo, READ, page, buf->offset, p->page, p->offset, size, IV)) { |
| 348 | printk(KERN_ERR "loop: transfer error block %ld\n", | 348 | printk_ratelimited(KERN_ERR "loop: transfer error block %ld\n", |
| 349 | page->index); | 349 | page->index); |
| 350 | size = -EINVAL; | 350 | size = -EINVAL; |
| 351 | } | 351 | } |
