]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFSv4/flexfiles: Update layout stats & error paths for striped layouts
authorJonathan Curley <jcurley@purestorage.com>
Wed, 24 Sep 2025 16:20:49 +0000 (16:20 +0000)
committerAnna Schumaker <anna.schumaker@oracle.com>
Fri, 26 Sep 2025 19:43:10 +0000 (15:43 -0400)
commit8a8e0f5566edc074a006246917fd78b358e39afa
treea6058dc764fd316c45e5e449354897ec47503779
parent06d157d6fc40615d199d0b2786dc469a05c9d254
NFSv4/flexfiles: Update layout stats & error paths for striped layouts

Updates the layout stats logic to be stripe aware. Read and write
stats are accumulated on a per DS stripe basis. Also updates error
paths to use dss_id where appropraite.

Limitations:

1. The layout stats structure is still statically sized to 4 and there
is no deduplication logic for deviceids that may appear more than once
in a striped layout.

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