]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/mpage.c
block: add a bi_error field to struct bio
[mirror_ubuntu-bionic-kernel.git] / fs / mpage.c
index ca0244b69de8bad8939ebb904e8d90156a81773e..abac9361b3f15c2202fe9ca91ab761a8f2d85fa8 100644 (file)
  * status of that page is hard.  See end_buffer_async_read() for the details.
  * There is no point in duplicating all that complexity.
  */
-static void mpage_end_io(struct bio *bio, int err)
+static void mpage_end_io(struct bio *bio)
 {
        struct bio_vec *bv;
        int i;
 
        bio_for_each_segment_all(bv, bio, i) {
                struct page *page = bv->bv_page;
-               page_endio(page, bio_data_dir(bio), err);
+               page_endio(page, bio_data_dir(bio), bio->bi_error);
        }
 
        bio_put(bio);