diff options
author | Weston Andros Adamson <dros@primarydata.com> | 2014-05-15 11:56:50 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-05-29 11:11:47 -0400 |
commit | 6094f83864c1d1296566a282cba05ba613f151ee (patch) | |
tree | 2f8b6dd0bc665e86bc6cc2b4f0f49b83299b14ef /fs/nfs | |
parent | dd7663e7000d3408b5a5037ae8f774feaa9c0628 (diff) |
nfs: allow coalescing of subpage requests
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/pagelist.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index ceb4424614aa..838f7c9664f5 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -921,10 +921,6 @@ static bool nfs_can_coalesce_requests(struct nfs_page *prev, | |||
921 | !nfs_match_lock_context(req->wb_lock_context, | 921 | !nfs_match_lock_context(req->wb_lock_context, |
922 | prev->wb_lock_context)) | 922 | prev->wb_lock_context)) |
923 | return false; | 923 | return false; |
924 | if (req->wb_pgbase != 0) | ||
925 | return false; | ||
926 | if (prev->wb_pgbase + prev->wb_bytes != PAGE_CACHE_SIZE) | ||
927 | return false; | ||
928 | if (req_offset(req) != req_offset(prev) + prev->wb_bytes) | 924 | if (req_offset(req) != req_offset(prev) + prev->wb_bytes) |
929 | return false; | 925 | return false; |
930 | } | 926 | } |