[PATCH OLK-5.10 3/6] fs/dirty_pages: fix wrong 'buff_num' after invalid input