NFS: More O_DIRECT accounting fixes for error paths
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Sep 2023 16:34:39 +0000 (12:34 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 13 Sep 2023 15:51:10 +0000 (11:51 -0400)
commit8982f7aff39fb526aba4441fff2525fcedd5e1a3
tree4e4812cd3f5c77c06f6e9ad089d5849dab002706
parent7c6339322ce0c6128acbe36aacc1eeb986dd7bf1
NFS: More O_DIRECT accounting fixes for error paths

If we hit a fatal error when retransmitting, we do need to record the
removal of the request from the count of written bytes.

Fixes: 031d73ed768a ("NFS: Fix O_DIRECT accounting of number of bytes read/written")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/direct.c