aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2015-03-25 16:23:44 +0800
committerBenjamin Herrenschmidt <[email protected]>2015-03-31 13:02:35 +1100
commit0e6c9122a6ec96d19f1db61e9750287d86b6829c (patch)
tree8bcf0dad431a260735d35172fd336c09185a74f3 /fs/jbd/commit.c
parente88ae01d2c43be3c3a6f340bfa7bab8b87127f57 (diff)
PCI: Keep individual VF BAR size in struct pci_sriov
Currently we don't store the individual VF BAR size. We calculate it when needed by dividing the PF's IOV resource size (which contains space for *all* the VFs) by total_VFs or by reading the BAR in the SR-IOV capability again. Keep the individual VF BAR size in struct pci_sriov.barsz[], add pci_iov_resource_size() to retrieve it, and use that instead of doing the division or reading the SR-IOV capability BAR. [bhelgaas: rename to "barsz[]", simplify barsz[] index computation, remove SR-IOV capability BAR sizing] Signed-off-by: Wei Yang <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions