aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorJonathan Curley <jcurley@purestorage.com>2025-09-24 16:20:43 +0000
committerAnna Schumaker <anna.schumaker@oracle.com>2025-09-26 15:30:20 -0400
commiteb71428e1a7fb51b8d43762db1c2ec1d8a7a95b6 (patch)
tree163aa8d911ded8200ab79785bd709957810c5d20 /fs/nfs
parentNFSv4/flexfiles: Remove cred local variable dependency (diff)
downloadlinux-eb71428e1a7fb51b8d43762db1c2ec1d8a7a95b6.tar.gz
linux-eb71428e1a7fb51b8d43762db1c2ec1d8a7a95b6.zip
NFSv4/flexfiles: Use ds_commit_idx when marking a write commit
Correct this path to use ds_commit_idx. Another noop preparation change. In current code commit_idx == mirror_idx but when striping is enabled that will not be true. Signed-off-by: Jonathan Curley <jcurley@purestorage.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index ad588ed59c09..0fb6905736d5 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -931,7 +931,7 @@ static void nfs_write_completion(struct nfs_pgio_header *hdr)
req->wb_nio = 0;
memcpy(&req->wb_verf, &hdr->verf.verifier, sizeof(req->wb_verf));
nfs_mark_request_commit(req, hdr->lseg, &cinfo,
- hdr->pgio_mirror_idx);
+ hdr->ds_commit_idx);
goto next;
}
remove_req: