aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2015-05-21 10:13:26 +0800
committerAlex Shi <alex.shi@linaro.org>2015-05-21 10:13:26 +0800
commit9106e24eb8e4dbe7f8de197317e68624ada540b0 (patch)
tree13d53c1272779bcc3e62462d17f99b01e98c46e1
parentb7f57fc3577b8a6822b411fa971e6562335485aa (diff)
parent5163bb7b0353fa83b8f85a2d7c0ddd348fb9514d (diff)
downloadlinux-linaro-stable-linux-linaro-lsk-v3.10-rt-test.tar.gz
-rw-r--r--fs/ext4/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 9e3d8dd6c40a..8a277505a3be 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -1032,7 +1032,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);
@@ -2729,7 +2730,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) {