diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2023-09-19 21:41:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-06 14:16:30 +0300 |
commit | d1de64c03983129efcdf4152a445ed2f600d3f25 (patch) | |
tree | 2355738b223ad80ba23c63d4a7fe6f7fe479ed37 /scripts/gdb/linux/modules.py | |
parent | d0373eb1a755caaa163dc1b4174365b61e1ccfb8 (diff) | |
download | linux-d1de64c03983129efcdf4152a445ed2f600d3f25.tar.xz |
rbd: decouple header read-in from updating rbd_dev->header
commit 510a7330c82a7754d5df0117a8589e8a539067c7 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions