From: Peng Tao Date: Thu, 9 Apr 2015 15:02:17 +0000 (+0800) Subject: nfs: remove WARN_ON_ONCE from nfs_direct_good_bytes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05f54903d9d370a4cd302a85681304d3ec59e5c1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nfs: remove WARN_ON_ONCE from nfs_direct_good_bytes For flexfiles driver, we might choose to read from mirror index other than 0 while mirror_count is always 1 for read. Reported-by: Jean Spector Cc: # v3.19+ Cc: Weston Andros Adamson Signed-off-by: Peng Tao Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index e97a67e40b48..eeb52b434e6f 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -129,8 +129,6 @@ nfs_direct_good_bytes(struct nfs_direct_req *dreq, struct nfs_pgio_header *hdr) int i; ssize_t count; - WARN_ON_ONCE(hdr->pgio_mirror_idx >= dreq->mirror_count); - if (dreq->mirror_count == 1) { dreq->mirrors[hdr->pgio_mirror_idx].count += hdr->good_bytes; dreq->count += hdr->good_bytes;