Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196825
b: refs/heads/master
c: 0341aaf
h: refs/heads/master
i:
  196823: 956ff74
v: v3
  • Loading branch information
Jens Axboe committed Apr 29, 2010
1 parent 44dce90 commit 5c140c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50eaeb323a170e231263ccb433bb2f99bd9e27ac
refs/heads/master: 0341aafb7f3313bcedc6811a098500be85f3fc77
5 changes: 3 additions & 2 deletions trunk/block/blk-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ struct bio_batch
static void bio_batch_end_io(struct bio *bio, int err)
{
struct bio_batch *bb = bio->bi_private;

if (err) {
if (err == -EOPNOTSUPP)
set_bit(BIO_EOPNOTSUPP, &bb->flags);
Expand Down Expand Up @@ -186,8 +187,8 @@ int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
if (flags & BLKDEV_IFL_WAIT)
bio->bi_private = &bb;

while(nr_sects != 0) {
sz = min(PAGE_SIZE >> 9 , nr_sects);
while (nr_sects != 0) {
sz = min((sector_t) PAGE_SIZE >> 9 , nr_sects);
if (sz == 0)
/* bio has maximum size possible */
break;
Expand Down

0 comments on commit 5c140c4

Please sign in to comment.