]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: factor out get_parent_info()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 22 Aug 2018 15:11:27 +0000 (17:11 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 6 Sep 2018 14:18:04 +0000 (16:18 +0200)
commita99fa6e6ede5e24c58a7c3244fa7ef9f78e64d5e
treee985c02f386a623bc61eda250778055ef4604a9d
parent77b67cf1e67f06d90be52d4fd3d39b70a8f621d6
rbd: factor out get_parent_info()

In preparation for the new parent_get and parent_overlap_get class
methods, factor out the fetching and decoding of parent data.

As a side effect, we now decode all four fields in the "no parent"
case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c