]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: propagate area down to file_to_extents()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 14 Sep 2022 12:55:56 +0000 (14:55 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 4 Dec 2022 17:19:19 +0000 (18:19 +0100)
commitb9a2384cdc437e61c91d93eac5854e4ca0579851
tree561624ff921f8e9dd53efbd9bcee7c1f91367dfb
parentbe286db1f137cc0c4ec2a3f8e873bd4372972e66
librbd: propagate area down to file_to_extents()

- readahead and PWL cache are limited to DATA area as explained in
  the previous commit
- DATA area is assumed for the journal as encryption can't be used
  with journaling anyway

To postpone the churn associated with passing area through
ImageDispatchInterface (where only WriteLogImageDispatch and
ImageDispatch care), add a new image dispatch flag.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
17 files changed:
src/librbd/cache/WriteLogImageDispatch.cc
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/io/CopyupRequest.cc
src/librbd/io/ImageDispatch.cc
src/librbd/io/ImageDispatchSpec.h
src/librbd/io/ImageRequest.cc
src/librbd/io/ImageRequest.h
src/librbd/io/ObjectRequest.cc
src/librbd/io/Types.h
src/librbd/io/Utils.cc
src/librbd/io/Utils.h
src/librbd/journal/Replay.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc
src/test/librbd/io/test_mock_CopyupRequest.cc
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/io/test_mock_ObjectRequest.cc
src/test/librbd/journal/test_mock_Replay.cc