[PATCH 6.13 052/443] ring-buffer: Make reading page consistent with the code logic