Whamcloud - gitweb
EX-7601 osd: add assert for prepare partial page
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 20 Nov 2023 00:40:27 +0000 (19:40 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 2 Jan 2024 08:22:23 +0000 (08:22 +0000)
commit07f106bb6486c89ff503300035da09b7f9008733
tree73de218d7d61fbd3ff4dc5ac41038c289b810500
parent0ebc400d8ec32aa809da56240409a7dab4b732b8
EX-7601 osd: add assert for prepare partial page

In the write prep code, we read up any partial pages (pages
which are not completely overwritten by the write) to
prepare them for write.  But for compressed files, we will
have already done this to prepare for decompression.

Add an assert to make sure we catch if this is ever wrong.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I1366b1f5b191a4d581448d692933d562198c3a1f
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53179
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/osd-ldiskfs/osd_io.c