Skip to content
  • Jaegeuk Kim's avatar
    f2fs: set GFP_NOFS for grab_cache_page · a56c7c6f
    Jaegeuk Kim authored
    
    
    For normal inodes, their pages are allocated with __GFP_FS, which can cause
    filesystem calls when reclaiming memory.
    This can incur a dead lock condition accordingly.
    
    So, this patch addresses this problem by introducing
    f2fs_grab_cache_page(.., bool for_write), which calls
    grab_cache_page_write_begin() with AOP_FLAG_NOFS.
    
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    a56c7c6f