Whamcloud - gitweb
EX-7601 osc: only set compressed flag on compressed pages
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 13 Nov 2023 16:18:49 +0000 (11:18 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 24 Nov 2023 09:27:08 +0000 (09:27 +0000)
commit7693dd6c44943a8bf45e3932facc5ab6684fe845
treeb9e398ca9f9645247b75bf5b81a59f32a2a93208
parent7c641ec9a73419aed4cf244f6ff60190cd0d1dcf
EX-7601 osc: only set compressed flag on compressed pages

The code accidentally sets the compressed flag on all
pages processed through fill_cpga, even if they're not
compressed.  Oops.

Also stop setting pg->index on the pages in the compressed
pga, this is only used by encryption and that's no longer
supported with compression.

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