nfs: allow coalescing of subpage requests
authorWeston Andros Adamson <dros@primarydata.com>
Thu, 15 May 2014 15:56:50 +0000 (11:56 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 29 May 2014 15:11:47 +0000 (11:11 -0400)
Remove check that the request covers a whole page.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c

index ceb4424..838f7c9 100644 (file)
@@ -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;
        }