NFS: Fix up nfs_page_group_covers_page()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Jul 2017 20:58:07 +0000 (16:58 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Aug 2017 15:54:47 +0000 (11:54 -0400)
commit7e8a30f8b497315a6467d86c82f6cc8acaa9db61
treece4c4ac4b12941cf601d47cadb06b0ef9c7d5ce1
parent1344b7ea172b4911a8ee8a6ff26c5bc6b5abb302
NFS: Fix up nfs_page_group_covers_page()

Fix up the test in nfs_page_group_covers_page(). The simplest implementation
is to check that we have a set of intersecting or contiguous subrequests
that connect page offset 0 to nfs_page_length(req->wb_page).

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c