aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/extent_cache.c
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@aol.com>2018-02-10 12:12:51 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-03-13 08:05:43 +0900
commit46706d5917f4457a6befe7a39a15c89dbb1ce9ca (patch)
tree2722d93f7bb3c6547102a3e8d8e1956176233213 /fs/f2fs/extent_cache.c
parentf2fs: clean up f2fs_sb_has_xxx functions (diff)
downloadlinux-dev-46706d5917f4457a6befe7a39a15c89dbb1ce9ca.tar.xz
linux-dev-46706d5917f4457a6befe7a39a15c89dbb1ce9ca.zip
f2fs: flush cp pack except cp pack 2 page at first
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: Gao Xiang <gaoxiang25@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/extent_cache.c')
0 files changed, 0 insertions, 0 deletions