diff options
author | David Hildenbrand <[email protected]> | 2021-06-02 20:57:16 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2021-07-08 07:49:02 -0400 |
commit | f4cf803dff4c87656cf25d9c5ec3cf828839efec (patch) | |
tree | 3a70246dc1dbb2bd4c4a88ce3549b5fc5fbbd96d /lib/mpi/mpi-add.c | |
parent | 49d42872d520365df619e5092ff7fb225e3079b3 (diff) |
virtio-mem: simplify high-level plug handling in Sub Block Mode
Let's simplify high-level memory block selection when plugging in Sub
Block Mode.
No need for two separate loops when selecting memory blocks for plugging
memory. Avoid passing the "online" state by simply obtaining the state
in virtio_mem_sbm_plug_any_sb().
Signed-off-by: David Hildenbrand <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions