• G
    f2fs: optimize restore_node_summary slightly · d653788a
    Gu Zheng 提交于
    Previously, we ra_sum_pages to pre-read contiguous pages as more
    as possible, and if we fail to alloc more pages, an ENOMEM error
    will be reported upstream, even though we have alloced some pages
    yet. In fact, we can use the available pages to do the job partly,
    and continue the rest in the following circle. Only reporting ENOMEM
    upstream if we really can not alloc any available page.
    
    And another fix is ignoring dealing with the following pages if an
    EIO occurs when reading page from page_list.
    Signed-off-by: NGu Zheng <guz.fnst@cn.fujitsu.com>
    Reviewed-by: NChao Yu <chao2.yu@samsung.com>
    [Jaegeuk Kim: modify the flow for better neat code]
    Signed-off-by: NJaegeuk Kim <jaegeuk.kim@samsung.com>
    d653788a
node.c 45.0 KB