• Gao Xiang's avatar
    f2fs: flush cp pack except cp pack 2 page at first · 46706d59
    Gao Xiang authored
    Previously, we attempt to flush the whole cp pack in a single bio,
    however, when suddenly powering off at this time, we could get into
    an extreme scenario that cp pack 1 page and cp pack 2 page are updated
    and latest, but payload or current summaries are still partially
    outdated. (see reliable write in the UFS specification)
    
    This patch submits the whole cp pack except cp pack 2 page at first,
    and then writes the cp pack 2 page with an extra independent
    bio with pre-io barrier.
    Signed-off-by: default avatarGao Xiang <gaoxiang25@huawei.com>
    Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    46706d59
checkpoint.c 36.2 KB