NFS: Ensure that ->writepage() uses flush_stable() when reclaiming pages

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust 2007-01-13 02:28:07 -05:00
parent 8e0969f045
commit 02241bc47e

View file

@ -323,7 +323,7 @@ static int nfs_writepage_locked(struct page *page, struct writeback_control *wbc
err = 0; err = 0;
out: out:
if (!wbc->for_writepages) 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; return err;
} }