]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: don't wait writeback for datas during checkpoint
authorChao Yu <yuchao0@huawei.com>
Wed, 16 Nov 2016 02:41:20 +0000 (10:41 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 25 Nov 2016 18:15:59 +0000 (10:15 -0800)
commit36951b38d13ac7cce9fcf89e0e01c22ed0d05688
tree1d04f0c34e4f80b65a1957c6a7ce0e865bc927a3
parentc79b7ff1d3c7710c23d8828a69d8cbc5597ad19f
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>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/segment.c