]> 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)
commit96c0d45bec08b863d6a7e55676ed04a2f99d03d5
treee985c02f386a623bc61eda250778055ef4604a9d
parenta71f564b0ae8c4eead42bf43c0812bf298ce06c0
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