OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d4f742
)
f2fs: check end_io for metapages before making next checkpoint blocks
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 16 Sep 2015 21:06:54 +0000
(14:06 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 21 Sep 2015 18:36:45 +0000
(11:36 -0700)
This patch avoids to produce new checkpoint blocks before the previous meta
pages were written completely.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/checkpoint.c
b/fs/f2fs/checkpoint.c
index
7c1b297
..
345837e
100644
(file)
--- a/
fs/f2fs/checkpoint.c
+++ b/
fs/f2fs/checkpoint.c
@@
-1003,6
+1003,11
@@
static void do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
start_blk = __start_cp_addr(sbi);
+ /* need to wait for end_io results */
+ wait_on_all_pages_writeback(sbi);
+ if (unlikely(f2fs_cp_error(sbi)))
+ return;
+
/* write out checkpoint buffer at block 0 */
update_meta_page(sbi, ckpt, start_blk++);