f2fs: check last page index in cached bio to decide submission
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 2 Feb 2017 00:51:22 +0000 (16:51 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 18:10:48 +0000 (10:10 -0800)
commit942fd3192f83cef54bc0d485937fd5382ac5acd0
tree12635c6163266d68c7555a98dd45f8ad5fc2b868
parentd68f735b3bc934a7523a047aa952a577cf6ca171
f2fs: check last page index in cached bio to decide submission

If the cached bio has the last page's index, then we need to submit it.
Otherwise, we don't need to submit it and can wait for further IO merges.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/node.c
fs/f2fs/segment.c