]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/io: only track initial diff extents if no diffs exists
authorJason Dillaman <dillaman@redhat.com>
Wed, 3 Feb 2021 15:13:28 +0000 (10:13 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2021 18:51:50 +0000 (13:51 -0500)
commitfedc6119ddaf5b67ce97d7a1ba9f10d1c58a1333
tree2e0d741f63c3a433b0e9a978962f325f44cd99ac
parentae4f94f890cf0a9c4a869ae6dc7b0ee07185bc2b
librbd/io: only track initial diff extents if no diffs exists

The purpose of the initial diff extents ({0, 0}) was to help track
whether or not objects exists for read-from-parent / whiteout
tracking. Once we have at least one set of diffs on the object, we
actually have enough information to know about the object state.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 688cbf3da38025b48be1e308f79170c40f0760d3)
src/librbd/io/ObjectRequest.cc
src/librbd/io/ObjectRequest.h