f2fs: remove nested usage of plug list
PATCH 1/1 f2fs: remove nested usage of plug list
-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 <[email protected]>
--- fs/f2fs/file.c | 2 -- 1 file changed, 2 deletions(-)
fs/f2fs/file.c +0 -2
@@ -2939,9 +2939,7 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)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 we couldn't write data, we should deallocate blocks. */
Signature · 6 lines
1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot