[PATCH 6.12 047/422] ring-buffer: Make reading page consistent with the code logic