Whamcloud - gitweb
EX-8245 osc: use correct count
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 28 Sep 2023 21:40:55 +0000 (17:40 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 19 Oct 2023 12:51:10 +0000 (12:51 +0000)
commit41b1dd730148c21b02466e2c3f63451dcc6d6309
tree988a7f064044dcf40d3a338e35280ced1810c34b
parent2cd1732f33297fc48a7f160b673d461f333e86de
EX-8245 osc: use correct count

Using the number of bytes in the compressed page creates
gaps in the RDMA, which IB memory registration cannot
accept.

Fix this by always setting count to PAGE_SIZE for
compressed pages and otherwise using the count from the
original source page.  Setting PAGE_SIZE for compressed
pages is valid because client only does compression for
aligned IO, except for the trailing chunk.  For the
trailing chunk, the file size is set on the server, so any
trailing bytes are ignored.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ied89d3ac328fb6020079392f5a8812ad5637b4a4
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52550
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osc/osc_compress.c