nfs: remove WARN_ON_ONCE from nfs_direct_good_bytes
authorPeng Tao <tao.peng@primarydata.com>
Thu, 9 Apr 2015 15:02:17 +0000 (23:02 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 23 Apr 2015 19:05:19 +0000 (15:05 -0400)
commit05f54903d9d370a4cd302a85681304d3ec59e5c1
treeb0b52ae5364e7bbfb5a28ef0473b038bb1f77076
parent1ccbad9f9f9bd36db26a10f0b17fbaf12b3ae93a
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 <jean@primarydata.com>
Cc: <stable@vger.kernel.org> # v3.19+
Cc: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/direct.c