aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChangman Lee <cm224.lee@samsung.com>2014-01-16 11:58:54 +0900
committerZiyan <jaraidaniel@gmail.com>2015-05-02 14:36:09 +0200
commitc671c266350e718fd5f19a2596939057c64929a9 (patch)
tree3f6e7d03cae26dc18c3df0410718cd6bfe6379ce /fs
parentfabfb4191960629dbb2f6c9a1d3012c5fc054cdf (diff)
downloadkernel_samsung_tuna-c671c266350e718fd5f19a2596939057c64929a9.zip
kernel_samsung_tuna-c671c266350e718fd5f19a2596939057c64929a9.tar.gz
kernel_samsung_tuna-c671c266350e718fd5f19a2596939057c64929a9.tar.bz2
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>
Diffstat (limited to 'fs')
-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 81c0ecb..5e2aa54 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -143,7 +143,7 @@ void f2fs_submit_merged_bio(struct f2fs_sb_info *sbi,
/* change META to META_FLUSH in the checkpoint procedure */
if (type >= META_FLUSH) {
io->fio.type = META_FLUSH;
- io->fio.rw = WRITE_FLUSH_FUA;
+ io->fio.rw = WRITE_FLUSH_FUA | REQ_META | REQ_PRIO;
}
__submit_merged_bio(io);
mutex_unlock(&io->io_mutex);