[PATCH] f2fs: remove redundant block plug

From: Chao Yu
Date: Wed Apr 04 2018 - 05:36:57 EST


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.

Signed-off-by: Chao Yu <yuchao0@xxxxxxxxxx>
---
fs/f2fs/file.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index fa8f7cf1498f..5ecf1e355a97 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -2943,9 +2943,8 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
inode_unlock(inode);
return err;
}
- blk_start_plug(&plug);
+
ret = __generic_file_write_iter(iocb, from);
- blk_finish_plug(&plug);
clear_inode_flag(inode, FI_NO_PREALLOC);

if (ret > 0)
--
2.15.0.55.gc2ece9dc4de6