Displaying 1 result from an estimated 1 matches for "dispatch_discard_io".
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...}
@@ -387,14 +416,15 @@ static int xen_blkbk_map(struct blkif_request *req,
continue;
seg[i].buf = map[i].dev_bus_addr |
- (req->u.rw.seg[i].first_sect << 9);
+ (seg_req[i].first_sect << 9);
}
return ret;
}
-static int dispatch_discard_io(struct xen_blkif *blkif,
- struct blkif_request *req)
+static int dispatch_discard_io(struct xen_blkif *blkif)
{
+ struct blkif_request *blkif_req = (struct blkif_request *)blkif->req;
+ struct blkif_request_discard *req = &blkif_req->u.discard;
int err = 0;...