diff options
author | Trond Myklebust <trondmy@gmail.com> | 2020-01-06 15:25:14 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-01-15 10:54:33 -0500 |
commit | 4daaeba938228f7c97e80817ccda1e091c7d3fb6 (patch) | |
tree | d291385160b694f2f3e0834fee154122891fe4a6 /fs/nls/nls_iso8859-2.c | |
parent | 8c9cb71491e7fd3ebee90d9799c9ca5b769bd0f4 (diff) |
NFS: Fix nfs_direct_write_reschedule_io()
The 'hdr->good_bytes' is defined as the number of bytes we expect to
read or write starting at offset hdr->io_start. In the case of a partial
read/write we may end up adjusting hdr->args.offset and hdr->args.count
to skip I/O for data that was already read/written, and so we must ensure
the calculation takes that into account.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nls/nls_iso8859-2.c')
0 files changed, 0 insertions, 0 deletions