From 3a3fef9d5fa76f4363e0a1c5483ffb305ed3e0fd Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 26 Nov 2007 19:11:38 -0500 Subject: [PATCH] Unionfs: call wait_on_page_writeback before clear_page_dirty_for_io CC: Hugh Dickins Signed-off-by: Erez Zadok --- fs/unionfs/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c index 8c07eed40cb..4d05352ed51 100644 --- a/fs/unionfs/mmap.c +++ b/fs/unionfs/mmap.c @@ -72,8 +72,8 @@ static int unionfs_writepage(struct page *page, struct writeback_control *wbc) } BUG_ON(!lower_mapping->a_ops->writepage); - clear_page_dirty_for_io(lower_page); /* emulate VFS behavior */ wait_on_page_writeback(lower_page); /* prevent multiple writers */ + clear_page_dirty_for_io(lower_page); /* emulate VFS behavior */ err = lower_mapping->a_ops->writepage(lower_page, wbc); if (err < 0) goto out_release; -- 2.43.0