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)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 1 Apr 2014 09:53:41 +0000 (18:53 +0900)
commitdf0f8dc0e154de13e3a54846f384b674dd557c85
tree9465da562d6136bd8a49d55b834f3713af880c5f
parent3bb5e2c8fe2296ddd9d864dcfb5ee1b77135f3ec
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