summaryrefslogtreecommitdiff
path: root/fs/f2fs/extent_cache.c
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@aol.com>2018-02-10 07:12:51 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2018-03-13 02:05:43 +0300
commit46706d5917f4457a6befe7a39a15c89dbb1ce9ca (patch)
tree2722d93f7bb3c6547102a3e8d8e1956176233213 /fs/f2fs/extent_cache.c
parentccd31cb28ff2113a2de96ebf19a02b3c920b9fd1 (diff)
downloadlinux-46706d5917f4457a6befe7a39a15c89dbb1ce9ca.tar.xz
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