commit 80072cceec9aea11b0b356a0834c64a51f7dea34
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Wed Nov 28 19:00:51 2007 -0500

    Unionfs: call wait_on_page_writeback before clear_page_dirty_for_io
    
    CC: Hugh Dickins <[EMAIL PROTECTED]>
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c
index 8c07eed..4d05352 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;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to