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

Commit 6094f838 authored by Weston Andros Adamson's avatar Weston Andros Adamson Committed by Trond Myklebust
Browse files

nfs: allow coalescing of subpage requests



Remove check that the request covers a whole page.

Signed-off-by: default avatarWeston Andros Adamson <dros@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent dd7663e7
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -921,10 +921,6 @@ static bool nfs_can_coalesce_requests(struct nfs_page *prev,
		    !nfs_match_lock_context(req->wb_lock_context,
					    prev->wb_lock_context))
			return false;
		if (req->wb_pgbase != 0)
			return false;
		if (prev->wb_pgbase + prev->wb_bytes != PAGE_CACHE_SIZE)
			return false;
		if (req_offset(req) != req_offset(prev) + prev->wb_bytes)
			return false;
	}