Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 494f74a2 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent b0ac1bd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;