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 ceb4424614aae7ecc50155ab8e6340df7c9a796f..838f7c9664f58b54fe4795ab96cfaf1a0f30842c 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;
        }