]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/s390/char/tape_block.c
block: convert to pos and nr_sectors accessors
[mirror_ubuntu-bionic-kernel.git] / drivers / s390 / char / tape_block.c
index 86596d3813b5c05fe6572582e5264ec66a4b5417..5d035e4939dc0df81f4c3a7ce0dc8d8ae6d3b54d 100644 (file)
@@ -87,7 +87,7 @@ __tapeblock_end_request(struct tape_request *ccw_req, void *data)
        if (ccw_req->rc == 0)
                /* Update position. */
                device->blk_data.block_position =
-                       (req->sector + req->nr_sectors) >> TAPEBLOCK_HSEC_S2B;
+                 (blk_rq_pos(req) + blk_rq_sectors(req)) >> TAPEBLOCK_HSEC_S2B;
        else
                /* We lost the position information due to an error. */
                device->blk_data.block_position = -1;