diff options
| author | Christoph Hellwig <hch@lst.de> | 2020-11-16 17:56:59 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 18:34:14 +0300 |
| commit | 2dc691cc4ac259f8b5bb0bd8670645af894d30eb (patch) | |
| tree | 1c480cc11d699018b66daf7363c112b1eba952f3 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 92f93c3a1bf9dc73181dc6566497d16b690cb576 (diff) | |
| download | linux-2dc691cc4ac259f8b5bb0bd8670645af894d30eb.tar.xz | |
nbd: refactor size updates
Merge nbd_size_set and nbd_size_update into a single function that also
updates the nbd_config fields. This new function takes the device size
in bytes as the first argument, and the blocksize as the second argument,
simplifying the calculations required in most callers.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
