Whamcloud - gitweb
EX-9192 csdc: Fix the upper mergeable chunk pointer
authorArtem Blagodarenko <ablagodarenko@ddn.com>
Tue, 16 Apr 2024 18:02:32 +0000 (19:02 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 27 Apr 2024 22:26:10 +0000 (22:26 +0000)
commit6b05e50b9b15035e26bc450799060db345bda841
tree7ff0fc1eeee1de2653a7700c22f1680e59ce5ebd
parent9f4844c87d184ad25fc855bce0d68da7a99cb2c0
EX-9192 csdc: Fix the upper mergeable chunk pointer

If the full chunk is followed by un mergeable page, the upper
mergeable chunk pointer is occasionally set to this unmanageable page.
The chunk size is calculated wrongly then and the next condition
suggest not to compress this chunk, because its size is not equal to
the expected size.

The pointer should be moved to the first instruction after the
can_merge_pages().

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