linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] f2fs: wait for page writeback to provide stable pages
@ 2013-04-28  0:04 Namjae Jeon
  0 siblings, 0 replies; only message in thread
From: Namjae Jeon @ 2013-04-28  0:04 UTC (permalink / raw)
  To: jaegeuk.kim
  Cc: linux-f2fs-devel, linux-fsdevel, linux-kernel, Namjae Jeon,
	Namjae Jeon, Amit Sahrawat, Darrick J. Wong

From: Namjae Jeon <namjae.jeon@samsung.com>

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
f2fs_vm_page_mkwrite.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
---
 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,
 
 mapped:
 	/* fill the page */
-	wait_on_page_writeback(page);
+	wait_for_stable_page(page);
 out:
 	sb_end_pagefault(inode->i_sb);
 	return block_page_mkwrite_return(err);
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-28  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-28  0:04 [PATCH 2/2] f2fs: wait for page writeback to provide stable pages Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).