• Jaegeuk Kim's avatar
    f2fs: avoid out-of-order execution of atomic writes · e7c75ab0
    Jaegeuk Kim authored
    We need to flush data writes before flushing last node block writes by using
    FUA with PREFLUSH. We don't need to guarantee precedent node writes since if
    those are not written, we can't reach to the last node block when scanning
    node block chain during roll-forward recovery.
    Afterwards f2fs_wait_on_page_writeback guarantees all the IO submission to
    disk, which builds a valid node block chain.
    Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    e7c75ab0
f2fs.h 29.9 KB