diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2023-09-19 20:41:47 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2023-09-26 10:31:31 +0200 |
commit | 510a7330c82a7754d5df0117a8589e8a539067c7 (patch) | |
tree | 5cceba3af872c9082d6ac39479770364222271a6 /scripts/gdb/linux/vmalloc.py | |
parent | 0b035401c57021fc6c300272cbb1c5a889d4fe45 (diff) |
rbd: decouple header read-in from updating rbd_dev->header
Make rbd_dev_header_info() populate a passed struct rbd_image_header
instead of rbd_dev->header and introduce rbd_dev_update_header() for
updating mutable fields in rbd_dev->header upon refresh. The initial
read-in of both mutable and immutable fields in rbd_dev_image_probe()
passes in rbd_dev->header so no update step is required there.
rbd_init_layout() is now called directly from rbd_dev_image_probe()
instead of individually in format 1 and format 2 implementations.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions