nfs/blocklayout: make sure making a aligned read request
authorKinglong Mee <kinglongmee@gmail.com>
Sat, 13 Feb 2016 13:51:31 +0000 (21:51 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 21 Mar 2016 16:39:46 +0000 (12:39 -0400)
commitf35592a97460f57d1089fd674176e9f34ba311f2
tree9341f7feb0a92fa4ea677de501b2200f912ab83e
parent1425075e7272faaa3629a1e2df679c0ba4cf55d3
nfs/blocklayout: make sure making a aligned read request

Only treat write goes up to the inode size as aligned request,
because it always write PAGE_CACHE_SIZE, but read a dynamic size.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/blocklayout.c