Whamcloud - gitweb
EX-6127 osc: add compression to can_merge_pages
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 30 Jun 2023 20:40:51 +0000 (16:40 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Jul 2023 23:05:21 +0000 (23:05 +0000)
commitf6472f4d8a9ab164b55ed1def68e7f9c99daafe7
tree1eaf6af5b400d5fb1bffac746d33b65758668f68
parentd91815046c83b3a29a76cf6bdd972655bda7bbc4
EX-6127 osc: add compression to can_merge_pages

Some BRW flags are OK to have on only some pages in a BRW,
others are not.  can_merge_pages has a whitelist of the
flags which are safe to have on only some pages in a BRW,
and prints a warning if other flags are seen.

Add compression to the white list, because while all pages
in an niobuf must be compressed, it is normal to have only
some pages in a BRW compressed.

Prior to this patch, this warning was printing during
normal usage of compression.

Test-Parameters: trivial
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ia262d4fc878e5328bd956865047e997aa77946f0
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51528
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osc/osc_request.c