diff options
author | Chao Yu <yuchao0@huawei.com> | 2016-11-16 03:41:20 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-25 19:15:59 +0100 |
commit | 36951b38d13ac7cce9fcf89e0e01c22ed0d05688 (patch) | |
tree | 1d04f0c34e4f80b65a1957c6a7ce0e865bc927a3 /fs/f2fs/file.c | |
parent | f2fs: fix wrong written_valid_blocks counting (diff) | |
download | linux-36951b38d13ac7cce9fcf89e0e01c22ed0d05688.tar.xz linux-36951b38d13ac7cce9fcf89e0e01c22ed0d05688.zip |
f2fs: don't wait writeback for datas during checkpoint
Normally, while committing checkpoint, we will wait on all pages to be
writebacked no matter the page is data or metadata, so in scenario where
there are lots of data IO being submitted with metadata, we may suffer
long latency for waiting writeback during checkpoint.
Indeed, we only care about persistence for pages with metadata, but not
pages with data, as file system consistent are only related to metadate,
so in order to avoid encountering long latency in above scenario, let's
recognize and reference metadata in submitted IOs, wait writeback only
for metadatas.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 9ea89ca8fd0b..f9883d597b42 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -94,8 +94,6 @@ mapped: if (f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode)) f2fs_wait_on_encrypted_page_writeback(sbi, dn.data_blkaddr); - /* if gced page is attached, don't write to cold segment */ - clear_cold_data(page); out: sb_end_pagefault(inode->i_sb); f2fs_update_time(sbi, REQ_TIME); |