]> git.baikalelectronics.ru Git - kernel.git/commit
xen-blkback: don't store dev_bus_addr
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 18 Mar 2013 16:49:32 +0000 (17:49 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 19 Mar 2013 16:50:00 +0000 (12:50 -0400)
commit61853fe6b073f1f12247a231215251b48d501ff6
tree4590ae87a8f4ca9bfd3a91dbe1a34abec523b48d
parentb536f02def1b4202607e81c191a192e13b00b6ef
xen-blkback: don't store dev_bus_addr

dev_bus_addr returned in the grant ref map operation is the mfn of the
passed page, there's no need to store it in the persistent grant
entry, since we can always get it provided that we have the page.

This reduces the memory overhead of persistent grants in blkback.

While at it, rename the 'seg[i].buf' to be 'seg[i].offset' as
it makes much more sense - as we use that value in bio_add_page
which as the fourth argument expects the offset.

We hadn't used the physical address as part of this at all.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xen.org
[v1: s/buf/offset/]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h