diff options
author | 2020-11-12 14:37:48 +0100 | |
---|---|---|
committer | 2020-12-18 16:14:25 -0500 | |
commit | 347202dc04a110bdab8d4e1c38ceccd7758fe13e (patch) | |
tree | b300e385bf4a2816357584807af73bca66daf5ba /tools/perf/scripts/python/export-to-postgresql.py | |
parent | virtio-mem: determine nid only once using memory_add_physaddr_to_nid() (diff) | |
download | linux-dev-347202dc04a110bdab8d4e1c38ceccd7758fe13e.tar.xz linux-dev-347202dc04a110bdab8d4e1c38ceccd7758fe13e.zip |
virtio-mem: more precise calculation in virtio_mem_mb_state_prepare_next_mb()
We actually need one byte less (next_mb_id is exclusive, first_mb_id is
inclusive). While at it, compact the code.
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20201112133815.13332-3-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions