提交 494f74a2 编写于 作者: T Trond Myklebust

NFS: Flush reclaim writes using FLUSH_COND_STABLE

If there are already writes queued up for commit, then don't flush
just this page even if it is a reclaim issue.
Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 b0ac1bd2
......@@ -244,7 +244,7 @@ static int wb_priority(struct writeback_control *wbc)
{
int ret = 0;
if (wbc->for_reclaim)
return FLUSH_HIGHPRI | FLUSH_STABLE;
return FLUSH_HIGHPRI | FLUSH_COND_STABLE;
if (wbc->sync_mode == WB_SYNC_ALL)
ret = FLUSH_COND_STABLE;
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册