[PATCH 2/2] f2fs: wait for page writeback to provide stable pages

From: Namjae Jeon
Date: Sat Apr 27 2013 - 20:04:47 EST

From: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>

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

Signed-off-by: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
Signed-off-by: Amit Sahrawat <a.sahrawat@xxxxxxxxxxx>
Cc: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
fs/f2fs/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index dc76f9b..0cb83a0 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -90,7 +90,7 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma,

/* fill the page */
- wait_on_page_writeback(page);
+ wait_for_stable_page(page);
return block_page_mkwrite_return(err);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/