• Chao Yu's avatar
    f2fs: fix to wait page writeback before update · a6d601f3
    Chao Yu authored
    Filesystem including f2fs should support stable page for special
    device like software raid, however there is one missing path that
    page could be updated while it is writeback state as below, fix
    this.
    
    - gc_node_segment
     - f2fs_move_node_page
      - __write_node_page
       - set_page_writeback
    
    - do_read_inode
     - f2fs_init_extent_tree
      - __f2fs_init_extent_tree
        i_ext->len = 0;
    Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    a6d601f3
extent_cache.c 19.8 KB