• Jaegeuk Kim's avatar
    f2fs: avoid to allocate when inline_data was written · 9ba69cf9
    Jaegeuk Kim authored
    The sceanrio is like this.
    inline_data   i_size     page                 write_begin/vm_page_mkwrite
      X             30       dirty_page
      X             30                            write to #4096 position
      X             30       get_dnode_of_data    wait for get_dnode_of_data
      O             30       write inline_data
      O             30                            get_dnode_of_data
      O             30                            reserve data block
    ..
    
    In this case, we have #0 = NEW_ADDR and inline_data as well.
    We should not allow this condition for further access.
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    9ba69cf9
data.c 27.8 KB