NFS41: send real write 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:22 +0000 (19:32 -0400)
commit6296556f0b31eaff29f2a3aee2c17b7eae895b98
tree19f39cac9cff045e8c753ab8908deadc1c9c6bab
parent35754bc00e94e598c432ad02f7a3d3063c4402e3
NFS41: send real write size in layoutget

For buffer write, block layout client scan inode mapping to find
next hole and use offset-to-hole as layoutget length. Object
layout client uses offset-to-isize as layoutget length.

For direct write, both block layout and object layout use dreq->bytes_left.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/direct.c
fs/nfs/internal.h
fs/nfs/objlayout/objio_osd.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h
This page took 0.024459 seconds and 5 git commands to generate.