]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4/flexfiles: Commit path updates for striped layouts
authorJonathan Curley <jcurley@purestorage.com>
Wed, 24 Sep 2025 16:20:47 +0000 (16:20 +0000)
committerAnna Schumaker <anna.schumaker@oracle.com>
Fri, 26 Sep 2025 19:41:18 +0000 (15:41 -0400)
commit8a8729db676379e148ce56ac9a7bc1f90e3bd95a
treeb8c5e0f87400aa218a4d6004deaee55740761e48
parent4934ccbeaed39659474fa18b8a399e2887cef8a9
NFSv4/flexfiles: Commit path updates for striped layouts

Updates the commit path to be stripe aware. This required updating
the ds_commit_idx to be stripe aware.

ds_commit_idx == mirror_idx * dss_count + dss_id.

Updates code paths to utilize the new ds_commit_idx and derive dss_id
& mirror_idx where appropriate to contact the correct DS using the
corresponding parameters.

Signed-off-by: Jonathan Curley <jcurley@purestorage.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/flexfilelayout/flexfilelayout.c