]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Sun, 21 Oct 2012 16:32:37 +0000 (09:32 -0700)
commitfda45cc12ebb7060131111442844f977555e3b9b
treefa7d69db5ff24127bac1db43af18f74e1c131e13
parente99bc7155de4a2598f853001720228d728d5ad1f
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