Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fd748df authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: remove redundant io plug



Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 0f348028
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -267,7 +267,6 @@ static int f2fs_write_meta_pages(struct address_space *mapping,
				struct writeback_control *wbc)
				struct writeback_control *wbc)
{
{
	struct f2fs_sb_info *sbi = F2FS_M_SB(mapping);
	struct f2fs_sb_info *sbi = F2FS_M_SB(mapping);
	struct blk_plug plug;
	long diff, written;
	long diff, written;


	/* collect a number of dirty meta pages and write together */
	/* collect a number of dirty meta pages and write together */
@@ -280,9 +279,7 @@ static int f2fs_write_meta_pages(struct address_space *mapping,
	/* if mounting is failed, skip writing node pages */
	/* if mounting is failed, skip writing node pages */
	mutex_lock(&sbi->cp_mutex);
	mutex_lock(&sbi->cp_mutex);
	diff = nr_pages_to_write(sbi, META, wbc);
	diff = nr_pages_to_write(sbi, META, wbc);
	blk_start_plug(&plug);
	written = sync_meta_pages(sbi, META, wbc->nr_to_write);
	written = sync_meta_pages(sbi, META, wbc->nr_to_write);
	blk_finish_plug(&plug);
	mutex_unlock(&sbi->cp_mutex);
	mutex_unlock(&sbi->cp_mutex);
	wbc->nr_to_write = max((long)0, wbc->nr_to_write - written - diff);
	wbc->nr_to_write = max((long)0, wbc->nr_to_write - written - diff);
	return 0;
	return 0;