From: Peng Tao Date: Thu, 9 Apr 2015 15:02:16 +0000 (+0800) Subject: nfs: fix DIO good bytes calculation X-Git-Tag: omap-for-v4.2/o2_dc~9^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ccbad9f9f9bd36db26a10f0b17fbaf12b3ae93a;p=pandora-kernel.git nfs: fix DIO good bytes calculation For direct read that has IO size larger than rsize, we'll split it into several READ requests and nfs_direct_good_bytes() would count completed bytes incorrectly by eating last zero count reply. Fix it by handling mirror and non-mirror cases differently such that we only count mirrored writes differently. This fixes 5fadeb47("nfs: count DIO good bytes correctly with mirroring"). Reported-by: Jean Spector Cc: # v3.19+ Signed-off-by: Peng Tao Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed