Whamcloud - gitweb
EX-7601 ofd: put decompress_read in read prep
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 12 Dec 2023 17:29:22 +0000 (12:29 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Jan 2024 08:18:56 +0000 (08:18 +0000)
commit075be2cda2fc6458a35d7daec96515b8e72b478f
tree3caf077afc90a3e9c10b74f667ae09151001cda9
parentb855021edca44fc533ea632d9f763683968888a9
EX-7601 ofd: put decompress_read in read prep

ofd_decompress_read is called from ofd_write_prep for
writes, but from tgt_brw_read for reads.  This makes the
code a little harder to follow and makes it difficult to
check read side decompression against EOF.

Instead, we move the decompression call to ofd_preprw_read.
This makes no change to the real operations here, but makes
for better code (and more similar code between read and
write).

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ibefd0a48ad08e83725f2df64618db60ba61c5ce0
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53427
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/include/obd.h
lustre/include/obd_class.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_obd.c
lustre/target/tgt_handler.c