]> git.hungrycats.org Git - linux/commit
pnfsblock: fix partial page buffer wirte
authorPeng Tao <bergwolf@gmail.com>
Thu, 23 Aug 2012 16:27:51 +0000 (00:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 18:59:40 +0000 (10:59 -0800)
commit0e252d8f530e5d322c53d014ce07b8115dfdac78
tree12dac724ed3acd8267392e122f80398e52267347
parentf036099aa85d361fd062384c8e831b580de7bbb2
pnfsblock: fix partial page buffer wirte

commit fe6e1e8d9fad86873eb74a26e80a8f91f9e870b5 upstream.

If applications use flock to protect its write range, generic NFS
will not do read-modify-write cycle at page cache level. Therefore
LD should know how to handle non-sector aligned writes. Otherwise
there will be data corruption.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/blocklayout/blocklayout.h