From: Erez Zadok Date: Thu, 29 Nov 2007 00:00:51 +0000 (-0500) Subject: Unionfs: call wait_on_page_writeback before clear_page_dirty_for_io X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=80072cceec9aea11b0b356a0834c64a51f7dea34;p=unionfs-odf.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 8c07eed40c..4d05352ed5 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;