Whamcloud - gitweb
EX-7601 ofd: convert dt_bufs_get to offset, len
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 27 Oct 2023 19:22:12 +0000 (15:22 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 30 Nov 2023 17:16:03 +0000 (17:16 +0000)
commit7f43f9869c80f7d9b81498ddd05979f36c5bb085
treee9da5b3a620482feff07c8d78e453fe332550879
parent83de606460b14b1ada27ded1f59956ffffe7d0b0
EX-7601 ofd: convert dt_bufs_get to offset, len

dt_bufs_get takes a remote niobuf, but just uses the
offset and length for getting pages.

Compression requires rounding the local IO to include the
full compression chunk, which means the local IO does not
match the remote niobuf any more.

So we modify dt_bufs_get to take an offset and length
rather than a remote niobuf, so we can ask for the pages we
need.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I4beaf8207fa00d802c0a339df3de2a3c71154fc7
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52865
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/dt_object.h
lustre/mdt/mdt_io.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_io.c