• J
    f2fs: change atomic and volatile write policies · 1e84371f
    Jaegeuk Kim 提交于
    This patch adds two new ioctls to release inmemory pages grabbed by atomic
    writes.
     o f2fs_ioc_abort_volatile_write
      - If transaction was failed, all the grabbed pages and data should be written.
     o f2fs_ioc_release_volatile_write
      - This is to enhance the performance of PERSIST mode in sqlite.
    
    In order to avoid huge memory consumption which causes OOM, this patch changes
    volatile writes to use normal dirty pages, instead blocked flushing to the disk
    as long as system does not suffer from memory pressure.
    Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
    1e84371f
f2fs.h 49.7 KB