diff options
-rw-r--r-- | fs/ext4/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index fc4051eb4e0f..47c8e4654371 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -969,7 +969,8 @@ retry_journal: | |||
969 | ext4_journal_stop(handle); | 969 | ext4_journal_stop(handle); |
970 | goto retry_grab; | 970 | goto retry_grab; |
971 | } | 971 | } |
972 | wait_on_page_writeback(page); | 972 | /* In case writeback began while the page was unlocked */ |
973 | wait_for_stable_page(page); | ||
973 | 974 | ||
974 | if (ext4_should_dioread_nolock(inode)) | 975 | if (ext4_should_dioread_nolock(inode)) |
975 | ret = __block_write_begin(page, pos, len, ext4_get_block_write); | 976 | ret = __block_write_begin(page, pos, len, ext4_get_block_write); |
@@ -2678,7 +2679,7 @@ retry_journal: | |||
2678 | goto retry_grab; | 2679 | goto retry_grab; |
2679 | } | 2680 | } |
2680 | /* In case writeback began while the page was unlocked */ | 2681 | /* In case writeback began while the page was unlocked */ |
2681 | wait_on_page_writeback(page); | 2682 | wait_for_stable_page(page); |
2682 | 2683 | ||
2683 | ret = __block_write_begin(page, pos, len, ext4_da_get_block_prep); | 2684 | ret = __block_write_begin(page, pos, len, ext4_da_get_block_prep); |
2684 | if (ret < 0) { | 2685 | if (ret < 0) { |