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, 31 May 2018 18:31:45 +0000 (11:31 -0700)
commit47cca3d62af20e1343cbd0a08b1f45e83892d82b
tree1157f1c1146086effe880de333473d1f189f5b5f
parent8045249829c9db0e664b3fa2f9c9b004089a6156
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