NFS: Reclaim writes via writepage are opportunistic
No need to make them a priority any more, or to make them succeed. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
abf4e13cc1
commit
cca588d6c8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue