diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-05-07 07:15:46 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-05-07 07:15:46 -0400 |
commit | 2fe5de9ce7d57498abc14b375cad2fcf8c3ee6cc (patch) | |
tree | 9478e8cf470c1d5bdb2d89b57a7e35919ab95e72 /drivers/block/loop.c | |
parent | 08f8aeb55d7727d644dbbbbfb798fe937d47751d (diff) | |
parent | 2b4cfe64dee0d84506b951d81bf55d9891744d25 (diff) |
Merge branch 'sched/urgent' into sched/core, to avoid conflicts
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/block/loop.c')
-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 c8bf270b7890..6cb1beb47c25 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 | } |