[PATCH v2 28/28] direct write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Fred Isaman <iisaman@xxxxxxxxxx>
---
 fs/nfs/direct.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index f69ef97..d44de2f 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -727,7 +727,7 @@ static void nfs_direct_write_completion(struct nfs_pgio_header *hdr)
 	if (dreq->error != 0)
 		bit = NFS_IOHDR_ERROR;
 	else {
-		dreq->count += (hdr->first_error - req_offset(hdr->req));
+		dreq->count += hdr->good_bytes;
 		if (test_bit(NFS_IOHDR_NEED_RESCHED, &hdr->flags)) {
 			dreq->flags = NFS_ODIRECT_RESCHED_WRITES;
 			bit = NFS_IOHDR_NEED_RESCHED;
-- 
1.7.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux