NFS: Ensure that ->writepage() uses flush_stable() when reclaiming pages
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 13 Jan 2007 07:28:07 +0000 (02:28 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 3 Feb 2007 23:35:06 +0000 (15:35 -0800)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c

index 345492e78643846a6a5f356ad4ab3e7c91c6a94d..966b8db99ac59945a985c5e4491785c482dbf348 100644 (file)
@@ -323,7 +323,7 @@ static int nfs_writepage_locked(struct page *page, struct writeback_control *wbc
                err = 0;
 out:
        if (!wbc->for_writepages)
-               nfs_flush_mapping(page->mapping, wbc, wb_priority(wbc));
+               nfs_flush_mapping(page->mapping, wbc, FLUSH_STABLE|wb_priority(wbc));
        return err;
 }