OSDN Git Service

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>
Mon, 9 Jul 2018 00:28:21 +0000 (17:28 -0700)
commitcd79eb2b5e451ca0be15338684252aef56dd319d
treeff6cbac64e25fc86e89af9c9139eaf90cc8eff15
parentec034d0f14ca093cf656843fa097350875c3895d
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