f2fs: remove redundant block plug
authorChao Yu <yuchao0@huawei.com>
Wed, 4 Apr 2018 09:35:13 +0000 (17:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 21:39:31 +0000 (14:39 -0700)
commit1c3ec702f06f9cc13803b1f17040947af48c9d5b
treef7b0f89ee09f2b9403587ae8b6fb077ab8906b78
parent694cd12fe9e4c81a7ff20ca683584791e4eb9b8b
f2fs: remove redundant block plug

For buffered IO, we don't need to use block plug to cache bio,
for direct IO, generic f2fs_direct_IO has already added block
plug, so let's remove redundant one in .write_iter.

As Yunlei described in his patch:

-f2fs_file_write_iter
  -blk_start_plug
    -__generic_file_write_iter
...
  -do_blockdev_direct_IO
    -blk_start_plug
...
    -blk_finish_plug
...
  -blk_finish_plug

which may conduct performance decrease in our platform

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c