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

Commit 1fe9c4d9 authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Gerrit - the friendly Code Review server
Browse files

ext4: convert write_begin methods to stable_page_writes semantics



Use wait_for_stable_page() instead of wait_on_page_writeback()

Change-Id: I9437240e8f7f4526e8df86dabc1735b6bdf2c0e9
Signed-off-by: default avatarDmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Git-commit:  7afe5aa59ed3da7b6161617e7f157c7c680dc41e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 875c796f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1030,7 +1030,8 @@ retry_journal:
		ext4_journal_stop(handle);
		goto retry_grab;
	}
	wait_on_page_writeback(page);
	/* In case writeback began while the page was unlocked */
	wait_for_stable_page(page);

	if (ext4_should_dioread_nolock(inode))
		ret = __block_write_begin(page, pos, len, ext4_get_block_write);
@@ -2712,7 +2713,7 @@ retry_journal:
		goto retry_grab;
	}
	/* In case writeback began while the page was unlocked */
	wait_on_page_writeback(page);
	wait_for_stable_page(page);

	ret = __block_write_begin(page, pos, len, ext4_da_get_block_prep);
	if (ret < 0) {