NFS41: send real read size in layoutget
authorPeng Tao <bergwolf@gmail.com>
Tue, 25 Sep 2012 06:55:57 +0000 (14:55 +0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 8 Oct 2012 23:32:34 +0000 (19:32 -0400)
commit1fd937bd7583e618df0528f0268b210f265d6910
tree6cc162c459c5acbe7f3126cb8159e500f9dd6e38
parent6296556f0b31eaff29f2a3aee2c17b7eae895b98
NFS41: send real read size in layoutget

For buffer read, use offst-to-isize.

For direct read, use dreq->bytes_left.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c