Whamcloud - gitweb
EX-7601 ofd: same-ify preprw_read and preprw_write
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 12 Dec 2023 17:07:35 +0000 (12:07 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Jan 2024 08:18:41 +0000 (08:18 +0000)
commitb855021edca44fc533ea632d9f763683968888a9
treed5b852c882b05cfa7a945c19b031673181aae89f
parentfb99cc3e212503c965f74c1d931f3c68e0ee8d4d
EX-7601 ofd: same-ify preprw_read and preprw_write

preprw_read and preprw_write have some sections which are
functionally the same but which have diverged slightly.
(These can't easily be shared between the functions.)

This is a short patch to make them more similar before
adding eof checking to reads.

Test-Parameters: trivial
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I7bce912e99e61a4eec4060d6b49d4917894b44c4
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53426
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/ofd/ofd_io.c