aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangman Lee <cm224.lee@samsung.com>2014-01-15 21:58:54 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-01-16 03:28:35 -0500
commitc434cbc0edda6a7a59d22b9d5d4279989d0ab804 (patch)
tree35ad61afb980dba34051770f7feb3dc482196a07
parentc33ec32692e1f2f4650f7bf5bb1108bb346b82a4 (diff)
f2fs: missing REQ_META and REQ_PRIO when sync_meta_pages(META_FLUSH)
Doing sync_meta_pages with META_FLUSH when checkpoint, we overide rw using WRITE_FLUSH_FUA. At this time, we also should set REQ_META|REQ_PRIO. Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index e57bde02e37f..bda889e2ca63 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -144,7 +144,7 @@ void f2fs_submit_merged_bio(struct f2fs_sb_info *sbi,
144 /* change META to META_FLUSH in the checkpoint procedure */ 144 /* change META to META_FLUSH in the checkpoint procedure */
145 if (type >= META_FLUSH) { 145 if (type >= META_FLUSH) {
146 io->fio.type = META_FLUSH; 146 io->fio.type = META_FLUSH;
147 io->fio.rw = WRITE_FLUSH_FUA; 147 io->fio.rw = WRITE_FLUSH_FUA | REQ_META | REQ_PRIO;
148 } 148 }
149 __submit_merged_bio(io); 149 __submit_merged_bio(io);
150 mutex_unlock(&io->io_mutex); 150 mutex_unlock(&io->io_mutex);