diff options
author | Denis V. Lunev <den@openvz.org> | 2023-09-18 20:00:42 +0200 |
---|---|---|
committer | Denis V. Lunev <den@openvz.org> | 2023-09-21 08:45:43 +0200 |
commit | 93361b7e33ab7046e7c4c2064503ff199ae1cef9 (patch) | |
tree | b439e5f000bff2f78243f85dc0ae9813b2f18927 /trace | |
parent | c74cd7bd328001c85cd6f74f63b52ae1263b4c22 (diff) |
parallels: invent parallels_opts_prealloc() helper to parse prealloc opts
This patch creates above mentioned helper and moves its usage to the
beginning of parallels_open(). This simplifies parallels_open() a bit.
The patch also ensures that we store prealloc_size on block driver state
always in sectors. This makes code cleaner and avoids wrong opinion at
the assignment that the value is in bytes.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Diffstat (limited to 'trace')
0 files changed, 0 insertions, 0 deletions