Skip to content

Commit 182dcfd

Browse files
jankaratorvalds
authored andcommitted
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 <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]> Cc: Artem Bityutskiy <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Joel Becker <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Steven Whitehouse <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Eric Van Hensbergen <[email protected]> Cc: Ron Minnich <[email protected]> Cc: Latchesar Ionkov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1269529 commit 182dcfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ubifs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,7 @@ static int ubifs_vm_page_mkwrite(struct vm_area_struct *vma,
15221522
ubifs_release_dirty_inode_budget(c, ui);
15231523
}
15241524

1525+
wait_for_stable_page(page);
15251526
unlock_page(page);
15261527
return 0;
15271528

0 commit comments

Comments
 (0)