提交 cca588d6 编写于 作者: T Trond Myklebust 提交者: Anna Schumaker

NFS: Reclaim writes via writepage are opportunistic

No need to make them a priority any more, or to make them succeed.
Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
上级 abf4e13c
...@@ -245,8 +245,7 @@ static void nfs_mark_uptodate(struct nfs_page *req) ...@@ -245,8 +245,7 @@ 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; int ret = 0;
if (wbc->for_reclaim)
return FLUSH_HIGHPRI | FLUSH_COND_STABLE;
if (wbc->sync_mode == WB_SYNC_ALL) if (wbc->sync_mode == WB_SYNC_ALL)
ret = FLUSH_COND_STABLE; ret = FLUSH_COND_STABLE;
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册