]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/cache/pwl: it should in apply_metadata set discard_granularity for pwl cache.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 1 Dec 2021 08:58:25 +0000 (16:58 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 1 Dec 2021 08:58:25 +0000 (16:58 +0800)
commit86223d039b587e768d71ce1266e85dde8a46a50a
tree32eb9c8f7dd5d69c14bc980af1e2fa28c0504fd7
parent174ad996c15ee7d50b3c74107946ffc0204b2139
librbd/cache/pwl: it should in apply_metadata set discard_granularity for pwl cache.

Function apply_meta can overwrite discard_granularity_bytes
based on option.

Fixes:https://tracker.ceph.com/issues/53434

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/librbd/ImageCtx.cc
src/librbd/cache/pwl/InitRequest.cc