[added to the 4.1 stable tree] ring-buffer: Mask out the info bits when returning buffer page length