commit 60f15ecade35c6599be22d9e9435d3e4407afbd8
Author: Hugh Dickins <[EMAIL PROTECTED]>
Date:   Sun Nov 25 18:31:22 2007 -0500

    Unionfs: minor cleanup in writepage
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c
index 27f01b6..b97a737 100644
--- a/fs/unionfs/mmap.c
+++ b/fs/unionfs/mmap.c
@@ -84,6 +84,7 @@ static int unionfs_writepage(struct page *page, struct 
writeback_control *wbc)
        copy_highpage(lower_page, page);
        flush_dcache_page(lower_page);
        SetPageUptodate(lower_page);
+       set_page_dirty(lower_page);
 
        /*
         * Call lower writepage (expects locked page).  However, if we are
@@ -94,7 +95,6 @@ static int unionfs_writepage(struct page *page, struct 
writeback_control *wbc)
         * success.
         */
        if (wbc->for_reclaim) {
-               set_page_dirty(lower_page);
                unlock_page(lower_page);
                goto out_release;
        }
@@ -103,7 +103,6 @@ static int unionfs_writepage(struct page *page, struct 
writeback_control *wbc)
                wbc->for_writepages = 0;
 
        BUG_ON(!lower_mapping->a_ops->writepage);
-       set_page_dirty(lower_page);
        clear_page_dirty_for_io(lower_page); /* emulate VFS behavior */
        err = lower_mapping->a_ops->writepage(lower_page, wbc);
        wbc->for_writepages = saved_for_writepages; /* restore value */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to