]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block/xen-blkfront: split get_grant in 2
authorJulien Grall <julien.grall@citrix.com>
Wed, 1 Jul 2015 13:10:38 +0000 (14:10 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:08 +0000 (02:01 +0100)
commitef21294ea02f8b6bcd92da5898e97d76ccdab1bc
tree635526faae3db155a50675ef38ef8952b3636905
parent411ea8a919a657f573601a30af36cb0b91d028ea
block/xen-blkfront: split get_grant in 2

Prepare the code to support 64KB page granularity. The first
implementation will use a full Linux page per indirect and persistent
grant. When non-persistent grant is used, each page of a bio request
may be split in multiple grant.

Furthermore, the field page of the grant structure is only used to copy
data from persistent grant or indirect grant. Avoid to set it for other
use case as it will have no meaning given the page will be split in
multiple grant.

Provide 2 functions, to setup indirect grant, the other for bio page.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 4f503fbdf319e4411aa48852b8922c93a9cc0c5d)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/block/xen-blkfront.c