summaryrefslogtreecommitdiff
path: root/block/uuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/uuid.c')
-rw-r--r--block/uuid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/uuid.c b/block/uuid.c
index 722d53b63..4610d7b8f 100644
--- a/block/uuid.c
+++ b/block/uuid.c
@@ -142,12 +142,12 @@ static int null_uuid(const char *uuid)
}
-static void uuid_end_bio(struct bio *bio, int err)
+static void uuid_end_bio(struct bio *bio)
{
struct page *page = bio->bi_io_vec[0].bv_page;
- if(!test_bit(BIO_UPTODATE, &bio->bi_flags))
- SetPageError(page);
+ if (bio->bi_error)
+ SetPageError(page);
unlock_page(page);
bio_put(bio);