NFS: Count the bytes of skipped subrequests in nfs_lock_and_join_requests()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 9 Sep 2017 20:43:09 +0000 (16:43 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 9 Sep 2017 20:43:09 +0000 (16:43 -0400)
commit1bd5d6d08ea7ed0794c8a3908383d6d6fc202cdd
tree964725f949b9f7ec7aa97d40921b7b588c8a7c80
parent8b77484f2b3d8f1096a2231d513fc589e4857a73
NFS: Count the bytes of skipped subrequests in nfs_lock_and_join_requests()

If we skip a subrequest due to a zero refcount, we should still count
the byte range that it covered so that we accurately reconstruct the
original request size.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c