diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index 27a025968297..5b3eb4a22793 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -1503,6 +1503,7 @@ repeat: lock_page(page); if (likely(page->mapping == mc)) { WRITE_ONCE(pcl->compressed_bvecs[nr].page, page); + oldpage = page; /* * The cached folio is still in managed cache but without