diff options
author | Peng Tao <bergwolf@gmail.com> | 2012-08-24 00:27:51 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-10-17 03:49:21 +0100 |
commit | 9392e7db7bc62b61ec72c8aa020f4d7e07118bff (patch) | |
tree | cac3c674e284afb63cf3a4c4ba3cae007e7d5f1e /drivers/gpu/drm | |
parent | 5ff39e971c87ea9f4c4c7b253898abafa960e32b (diff) |
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>
[bwh: Backported to Linux 3.2:
- Adjust context
- s/wdata->pages\.npages/wdata->npages/
- s/header->pnfs_error/wdata->pnfs_error/
- Drop change in missing out_mds exit path]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/gpu/drm')
0 files changed, 0 insertions, 0 deletions