From: Erez Zadok Date: Tue, 27 Nov 2007 00:11:38 +0000 (-0500) Subject: Unionfs: call wait_on_page_writeback before clear_page_dirty_for_io X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=0f1ca3c310febb87b132a65091b9caeac07ba3ee;p=unionfs-3.6.y.git Unionfs: call wait_on_page_writeback before clear_page_dirty_for_io CC: Hugh Dickins Signed-off-by: Erez Zadok --- 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;