Skip to content

Commit eb71428

Browse files
Jonathan CurleyAnna Schumaker
authored andcommitted
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>
1 parent fec80af commit eb71428

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfs/write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ static void nfs_write_completion(struct nfs_pgio_header *hdr)
931931
req->wb_nio = 0;
932932
memcpy(&req->wb_verf, &hdr->verf.verifier, sizeof(req->wb_verf));
933933
nfs_mark_request_commit(req, hdr->lseg, &cinfo,
934-
hdr->pgio_mirror_idx);
934+
hdr->ds_commit_idx);
935935
goto next;
936936
}
937937
remove_req:

0 commit comments

Comments
 (0)