|
@@ -242,11 +242,14 @@ static void nfs_mark_uptodate(struct nfs_page *req)
|
|
|
|
|
|
static int wb_priority(struct writeback_control *wbc)
|
|
static int wb_priority(struct writeback_control *wbc)
|
|
{
|
|
{
|
|
|
|
+ int ret = 0;
|
|
if (wbc->for_reclaim)
|
|
if (wbc->for_reclaim)
|
|
return FLUSH_HIGHPRI | FLUSH_STABLE;
|
|
return FLUSH_HIGHPRI | FLUSH_STABLE;
|
|
|
|
+ if (wbc->sync_mode == WB_SYNC_ALL)
|
|
|
|
+ ret = FLUSH_COND_STABLE;
|
|
if (wbc->for_kupdate || wbc->for_background)
|
|
if (wbc->for_kupdate || wbc->for_background)
|
|
- return FLUSH_LOWPRI | FLUSH_COND_STABLE;
|
|
|
|
- return FLUSH_COND_STABLE;
|
|
|
|
|
|
+ ret |= FLUSH_LOWPRI;
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|