f2fs: avoid unnecessary bio submit when wait page writeback
authorChao Yu <chao2.yu@samsung.com>
Sat, 22 Mar 2014 06:57:23 +0000 (14:57 +0800)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:03:55 +0000 (18:03 +0800)
commit6ba93f6485baf70a999ee97459f19fa1e6d08ab6
tree45c7fa4956a67fa5ec21ab7a5be9e35ac754a803
parent8f8ea731022a6622519e59c3ac1370a47bdbb759
f2fs: avoid unnecessary bio submit when wait page writeback

This patch introduce is_merged_page() to check whether current page is merged
in f2fs bio cache. When page is not in cache, we can avoid submitting bio cache,
resulting in having more chance to merge pages.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c