From: Jan Kara Date: Thu, 7 Feb 2013 01:27:17 +0000 (+1100) Subject: ubifs: wait for page writeback to provide stable pages X-Git-Tag: next-20130218~1^2~297 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6c4e90798d55ccd5704fbc1266f099654d373632;p=karo-tx-linux.git ubifs: wait for page writeback to provide stable pages When stable pages are required, we have to wait if the page is just going to disk and we want to modify it. Add proper callback to ubifs_vm_page_mkwrite(). Signed-off-by: Jan Kara Signed-off-by: Darrick J. Wong Cc: Artem Bityutskiy Cc: Adrian Hunter Cc: Andy Lutomirski Cc: Joel Becker Cc: Mark Fasheh Cc: Steven Whitehouse Cc: Jens Axboe Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Latchesar Ionkov Signed-off-by: Andrew Morton --- diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index 5bc77817f382..4f6493c130e0 100644 --- a/fs/ubifs/file.c +++ b/fs/ubifs/file.c @@ -1522,6 +1522,7 @@ static int ubifs_vm_page_mkwrite(struct vm_area_struct *vma, ubifs_release_dirty_inode_budget(c, ui); } + wait_for_stable_page(page); unlock_page(page); return 0;